From b4ede3f9772a126c79a075bb1578fcb25f42f063 Mon Sep 17 00:00:00 2001 From: Kyzentun Date: Fri, 30 Jan 2015 09:30:50 -0700 Subject: [PATCH] Stupid LuaHelpes::Push doesn't have a size_t specialization. --- src/Actor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Actor.cpp b/src/Actor.cpp index b9eebb33db..1096bf1fe2 100644 --- a/src/Actor.cpp +++ b/src/Actor.cpp @@ -1891,7 +1891,11 @@ public: p->RemoveWrapperState(si); COMMON_RETURN_SELF; } - DEFINE_METHOD(GetNumWrapperStates, GetNumWrapperStates()); + static int GetNumWrapperStates(T* p, lua_State* L) + { + lua_pushnumber(L, p->GetNumWrapperStates()); + return 1; + } static int GetWrapperState(T* p, lua_State* L) { size_t si= get_state_index(p, L, 1);