mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Prevent POPS within LOAD blocks
This commit is contained in:
@@ -562,6 +562,9 @@ void out_PopSection(void)
|
|||||||
if (pSectionStack == NULL)
|
if (pSectionStack == NULL)
|
||||||
fatalerror("No entries in the section stack");
|
fatalerror("No entries in the section stack");
|
||||||
|
|
||||||
|
if (currentLoadSection)
|
||||||
|
fatalerror("Cannot change the section within a `LOAD` block!");
|
||||||
|
|
||||||
struct SectionStackEntry *pSect;
|
struct SectionStackEntry *pSect;
|
||||||
|
|
||||||
pSect = pSectionStack;
|
pSect = pSectionStack;
|
||||||
|
|||||||
Reference in New Issue
Block a user