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);