Merge pull request #836 from GregoryLundberg/GL_Fix_Lua_PANIC

Fix Lua stack corruption
This commit is contained in:
Charles Dang 2016-10-22 03:39:25 +11:00 committed by GitHub
commit c47bede654

View file

@ -1038,7 +1038,6 @@ void lua_ai_context::update_state()
// Call the function
if (!luaW_pcall(L, 2, 1, true)) { // [-1: Result -2: AI state]
lua_pop(L, 2); // (The result in this case is an error message.)
return; // return with stack size 0 []
}