mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-20 22:04:32 +00:00
Fix an SDAS object error message to use the valid section name variable
This commit is contained in:
@@ -294,11 +294,7 @@ void sdobj_ReadFile(FileStackNode const &src, FILE *file, std::vector<Symbol> &f
|
||||
uint32_t tmp = readInt(where, token, numberBase);
|
||||
|
||||
if (tmp > UINT16_MAX) {
|
||||
fatalAt(
|
||||
where,
|
||||
"Area \"%s\" is larger than the GB address space",
|
||||
curSection->name.c_str()
|
||||
);
|
||||
fatalAt(where, "Area \"%s\" is larger than the GB address space", sectName);
|
||||
}
|
||||
curSection->size = tmp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user