Fix API assert in LUA_EvalMath
This commit is contained in:
1 parent
3554c91b2b
commit
335b977cd4
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user