mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna switch to Lua 5.2.3
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user