This fixes a small oversight with r7238

git-svn-id: https://svn.eduke32.com/eduke32@7247 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-12-15 01:36:37 +00:00
parent f40026a0be
commit 41c33af8e0

View file

@ -1263,7 +1263,8 @@ static void C_GetNextVarType(int32_t type)
}
else
{
if (*textptr == ']' || *textptr == '.')
// allow "[]" or "." but not "[."
if (*textptr == ']' || (*textptr == '.' && textptr[-1] != '['))
{
scriptWriteValue(g_thisActorVarID);
}