Eluna switch to Lua 5.2.3

This commit is contained in:
Rochet2
2014-06-28 00:31:14 +03:00
committed by Foereaper
parent 6cd2ed2b6f
commit 423619b652
3 changed files with 15 additions and 15 deletions

View File

@@ -119,7 +119,7 @@ namespace LuaGameObject
uint32 repeats = Eluna::CHECKVAL<uint32>(L, 4);
lua_pushvalue(L, 2);
int functionRef = lua_ref(L, true);
int functionRef = luaL_ref(L, LUA_REGISTRYINDEX);
functionRef = sEluna->m_EventMgr->AddEvent(&go->m_Events, functionRef, delay, repeats, go);
if (functionRef)
Eluna::Push(L, functionRef);