Prevent POPS within LOAD blocks

This commit is contained in:
ISSOtm
2020-03-20 18:57:37 +01:00
parent 29623c4146
commit 5a0fcda4c8

View File

@@ -562,6 +562,9 @@ void out_PopSection(void)
if (pSectionStack == NULL)
fatalerror("No entries in the section stack");
if (currentLoadSection)
fatalerror("Cannot change the section within a `LOAD` block!");
struct SectionStackEntry *pSect;
pSect = pSectionStack;