Merge pull request #836 from GregoryLundberg/GL_Fix_Lua_PANIC
Fix Lua stack corruption
This commit is contained in:
commit
c47bede654
1 changed files with 0 additions and 1 deletions
|
@ -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 []
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue