diff options
Diffstat (limited to 'Runtime/Lua/LuaBind')
-rw-r--r-- | Runtime/Lua/LuaBind/LuaBindState.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindState.cpp b/Runtime/Lua/LuaBind/LuaBindState.cpp index 8b6a5aa..fa2952f 100644 --- a/Runtime/Lua/LuaBind/LuaBindState.cpp +++ b/Runtime/Lua/LuaBind/LuaBindState.cpp @@ -164,7 +164,8 @@ namespace LuaBind } if (lua_pcall(mState, nArgs, nResults, func) == 0) { - lua_remove(mState, func); + if(func != 0) + lua_remove(mState, func); } else { |