From 41c33af8e0e51ec19656f7461ebd5417e1798787 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 15 Dec 2018 01:36:37 +0000 Subject: [PATCH] This fixes a small oversight with r7238 git-svn-id: https://svn.eduke32.com/eduke32@7247 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gamedef.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index 9ded79702..6f8212398 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -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); }