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

@@ -1568,7 +1568,7 @@ namespace LuaUnit
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(&unit->m_Events, functionRef, delay, repeats, unit);
if (functionRef)
Eluna::Push(L, functionRef);