Prevent addlogvar from accepting constants, which causes a crash

git-svn-id: https://svn.eduke32.com/eduke32@7765 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-07-06 16:30:58 +00:00 committed by Christoph Oelckers
parent 940df04eb6
commit 465403a199

View file

@ -3562,6 +3562,11 @@ DO_DEFSTATE:
C_GetNextVarType((tw == CON_GETTSPR) ? GAMEVAR_READONLY : 0); C_GetNextVarType((tw == CON_GETTSPR) ? GAMEVAR_READONLY : 0);
continue; continue;
} }
case CON_ADDLOGVAR:
g_labelsOnly = 1;
C_GetNextVar();
g_labelsOnly = 0;
continue;
case CON_COS: case CON_COS:
case CON_DIVR: case CON_DIVR:
@ -3578,7 +3583,6 @@ DO_DEFSTATE:
C_GetNextVarType(GAMEVAR_READONLY); C_GetNextVarType(GAMEVAR_READONLY);
fallthrough__; fallthrough__;
case CON_ACTIVATECHEAT: case CON_ACTIVATECHEAT:
case CON_ADDLOGVAR:
case CON_ANGOFF: case CON_ANGOFF:
case CON_CHECKACTIVATORMOTION: case CON_CHECKACTIVATORMOTION:
case CON_CHECKAVAILINVEN: case CON_CHECKAVAILINVEN: