Eluna fix RegisterEvent and other unexpected arguments

This commit is contained in:
Rochet2
2014-05-26 00:34:30 +03:00
committed by Foereaper
parent 18258079b2
commit 74aaea30d5
3 changed files with 28 additions and 28 deletions

View File

@@ -118,7 +118,7 @@ namespace LuaGameObject
uint32 delay = sEluna->CHECKVAL<uint32>(L, 3);
uint32 repeats = sEluna->CHECKVAL<uint32>(L, 4);
lua_settop(L, 2);
lua_pushvalue(L, 2);
int functionRef = lua_ref(L, true);
functionRef = sEluna->m_EventMgr.AddEvent(&go->m_Events, functionRef, delay, repeats, go);
if (functionRef)