Fix a potentially funny bug in the CON parser

I don't think anyone actually ran into this.

git-svn-id: https://svn.eduke32.com/eduke32@7644 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-05-19 03:54:00 +00:00 committed by Christoph Oelckers
parent 9ac1ce04d6
commit b854ddff41

View file

@ -4380,7 +4380,7 @@ setvarvar:
{
j = C_GetKeyword();
if (j == CON_ELSE || j == CON_LEFTBRACE)
if (j == CON_ELSE)
g_checkingIfElse++;
}
continue;
@ -4433,7 +4433,7 @@ ifvar:
{
j = C_GetKeyword();
if (j == CON_ELSE || j == CON_LEFTBRACE)
if (j == CON_ELSE)
g_checkingIfElse++;
}
@ -4941,7 +4941,7 @@ repeatcase:
j = C_GetKeyword();
if (j == CON_ELSE || j == CON_LEFTBRACE)
if (j == CON_ELSE)
g_checkingIfElse++;
continue;
@ -4991,7 +4991,7 @@ repeatcase:
j = C_GetKeyword();
if (j == CON_ELSE || j == CON_LEFTBRACE)
if (j == CON_ELSE)
g_checkingIfElse++;
continue;