fix stack popping after compilation error (bug #18977)

This commit is contained in:
Anonymissimus 2011-11-11 17:59:17 +00:00
parent 1fdb9baecc
commit d2745bae08

View file

@ -3999,7 +3999,7 @@ bool LuaKernel::execute(char const *prog, int nArgs, int nRets)
char const *m = lua_tostring(L, -1);
chat_message("Lua error", m);
ERR_LUA << m << '\n';
lua_pop(L, 2);
lua_pop(L, 1);
return false;
}