Fix API assert in LUA_EvalMath

This commit is contained in:
GenericHeroGuy committed 2024-11-10 17:41:00 +01:00
1 parent 3554c91b2b
commit 335b977cd4
1 file changed
+3
+3
View File
@@ -584,6 +584,9 @@ fixed_t LUA_EvalMath(const char *word)
if (*p == '^')
*b++ = '^';
}
// length of word is zero!?
if (p == word)
return 0;
*b = '\0';
// eval string.