mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Use std::vector for section data
This commit is contained in:
@@ -174,7 +174,7 @@ static void writeBank(std::deque<struct Section const *> *bankSections, uint16_t
|
||||
}
|
||||
|
||||
// Output the section itself
|
||||
fwrite(section->data, sizeof(*section->data), section->size, outputFile);
|
||||
fwrite(&(*section->data)[0], 1, section->size, outputFile);
|
||||
if (overlayFile) {
|
||||
// Skip bytes even with pipes
|
||||
for (uint16_t i = 0; i < section->size; i++)
|
||||
|
||||
Reference in New Issue
Block a user