mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Fix a major bug where "enda" could be used to terminate an event, resulting in all kinds of issues.
git-svn-id: https://svn.eduke32.com/eduke32@5507 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1cc28df380
commit
96ab0aba08
1 changed files with 2 additions and 1 deletions
|
@ -5901,11 +5901,12 @@ repeatcase:
|
|||
continue;
|
||||
|
||||
case CON_ENDA:
|
||||
if (EDUKE32_PREDICT_FALSE(g_parsingActorPtr == NULL))
|
||||
if (EDUKE32_PREDICT_FALSE(g_parsingActorPtr == NULL || g_parsingEventPtr))
|
||||
{
|
||||
C_ReportError(-1);
|
||||
initprintf("%s:%d: error: found `enda' without open `actor'.\n",g_szScriptFileName,g_lineNumber);
|
||||
g_numCompilerErrors++;
|
||||
g_parsingEventPtr = NULL;
|
||||
}
|
||||
if (EDUKE32_PREDICT_FALSE(g_numBraces != 0))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue