mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Use automatic allocation for section data
This commit is contained in:
@@ -135,7 +135,7 @@ static void writesection(struct Section const §, FILE *f)
|
||||
putlong(sect.alignOfs, f);
|
||||
|
||||
if (sect_HasData(sect.type)) {
|
||||
fwrite(sect.data, 1, sect.size, f);
|
||||
fwrite(sect.data.data(), 1, sect.size, f);
|
||||
putlong(sect.patches.size(), f);
|
||||
|
||||
for (struct Patch const &patch : sect.patches)
|
||||
|
||||
Reference in New Issue
Block a user