mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Fix bank-fixed sections going in any bank
This commit is contained in:
@@ -193,6 +193,9 @@ static struct FreeSpace *getPlacement(struct Section const *section,
|
|||||||
/* Try again with the new location/free space combo */
|
/* Try again with the new location/free space combo */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (section->isBankFixed)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
/* Try again in the next bank */
|
/* Try again in the next bank */
|
||||||
location->bank++;
|
location->bank++;
|
||||||
if (location->bank > bankranges[section->type][1])
|
if (location->bank > bankranges[section->type][1])
|
||||||
|
|||||||
Reference in New Issue
Block a user