mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Fix issue where a useless error would be printed to the log and bad memory reads could occur when compiling a CON script with an invalid structure member passed as gamevar structure access shortcut shorthand
git-svn-id: https://svn.eduke32.com/eduke32@7323 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1245799e6b
commit
c4753af497
1 changed files with 6 additions and 4 deletions
|
@ -1500,11 +1500,13 @@ static void C_GetNextVarType(int32_t type)
|
||||||
|
|
||||||
case STRUCT_ACTORVAR:
|
case STRUCT_ACTORVAR:
|
||||||
case STRUCT_PLAYERVAR: labelNum = GetDefID(LAST_LABEL); break;
|
case STRUCT_PLAYERVAR: labelNum = GetDefID(LAST_LABEL); break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
if (labelNum == -1)
|
||||||
g_errorCnt++;
|
{
|
||||||
C_ReportError(ERROR_NOTAMEMBER);
|
g_errorCnt++;
|
||||||
return;
|
C_ReportError(ERROR_NOTAMEMBER);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (id - g_structVarIDs)
|
switch (id - g_structVarIDs)
|
||||||
|
|
Loading…
Reference in a new issue