Fix really stupid error with CON_NULLOP branch detection

Fixes #4.

# Conflicts:
#	source/duke3d/src/gamedef.cpp
#	source/duke3d/src/m32def.cpp
This commit is contained in:
Richard C. Gobeille 2020-04-20 13:22:27 -07:00 committed by Christoph Oelckers
parent 94d098f8ef
commit 61d82c8152

View file

@ -5600,7 +5600,9 @@ repeatcase:
continue;
case CON_NULLOP:
if (EDUKE32_PREDICT_FALSE(C_GetKeyword() != CON_ELSE))
{
auto const kw = C_GetKeyword();
if (EDUKE32_PREDICT_FALSE(kw != CON_ELSE && kw != CON_LEFTBRACE))
{
C_ReportError(-1);
g_warningCnt++;
@ -5609,6 +5611,7 @@ repeatcase:
g_skipBranch = true;
}
continue;
}
case CON_GAMESTARTUP:
{