summaryrefslogtreecommitdiff
path: root/Runtime/Lua/LuaBind/LuaBindClass.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindClass.hpp')
-rw-r--r--Runtime/Lua/LuaBind/LuaBindClass.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindClass.hpp b/Runtime/Lua/LuaBind/LuaBindClass.hpp
index eb028c2..7fb4529 100644
--- a/Runtime/Lua/LuaBind/LuaBindClass.hpp
+++ b/Runtime/Lua/LuaBind/LuaBindClass.hpp
@@ -414,7 +414,7 @@ namespace LuaBind
PushMemberRef(state, script);
state.GetField(-1, method);
PushMemberRef(state, script);
- state.Call(1, 0);
+ state.Call(1, 0, onErrorOccured);
state.SetTop(top);
}
@@ -512,7 +512,7 @@ namespace LuaBind
if (state.IsType(-1, LUA_TFUNCTION))
{
lua_pushvalue(L, 1); // userdata
- state.Call(1, 1); // 派生类的GetClassName函数
+ state.Call(1, 1, onErrorOccured); // 派生类的GetClassName函数
classname = state.GetValue<cc8*>(-1, "");
}
else