diff --git a/objs/.gitignore b/objs/.gitignore index 35ecd6def..039bfb7d8 100644 --- a/objs/.gitignore +++ b/objs/.gitignore @@ -3,6 +3,9 @@ SRB2.res depend.dep depend.ped *.o +buildvm* +minilua* +lj_vm.S #VC9 folder only /VC9/Win32 /VC9/x64 diff --git a/src/lua_script.c b/src/lua_script.c index 55b94d8d5..e9210640d 100644 --- a/src/lua_script.c +++ b/src/lua_script.c @@ -444,6 +444,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.