mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-25 22:33:03 +00:00
Fix bug where an object's invalid ROMX bank of 0 could break rgblink (#1868)
This commit is contained in:
@@ -122,8 +122,9 @@ static std::optional<size_t> getPlacement(Section const §ion, MemoryLocation
|
||||
if (location.bank < typeInfo.firstBank
|
||||
|| location.bank >= memory[section.type].size() + typeInfo.firstBank) {
|
||||
fatal(
|
||||
"Invalid bank for %s section: 0x%02x",
|
||||
"Invalid bank for %s section \"%s\": %" PRIu32,
|
||||
sectionTypeInfo[section.type].name.c_str(),
|
||||
section.name.c_str(),
|
||||
location.bank
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user