mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fixed RegisterPacketEvent typo
This commit is contained in:
@@ -482,8 +482,8 @@ namespace LuaGlobalFunctions
|
|||||||
{
|
{
|
||||||
uint32 entry = Eluna::CHECKVAL<uint32>(L, 1);
|
uint32 entry = Eluna::CHECKVAL<uint32>(L, 1);
|
||||||
uint32 ev = Eluna::CHECKVAL<uint32>(L, 2);
|
uint32 ev = Eluna::CHECKVAL<uint32>(L, 2);
|
||||||
luaL_checktype(L, 2, LUA_TFUNCTION);
|
luaL_checktype(L, 3, LUA_TFUNCTION);
|
||||||
lua_pushvalue(L, 2);
|
lua_pushvalue(L, 3);
|
||||||
int functionRef = luaL_ref(L, LUA_REGISTRYINDEX);
|
int functionRef = luaL_ref(L, LUA_REGISTRYINDEX);
|
||||||
if (functionRef > 0)
|
if (functionRef > 0)
|
||||||
sEluna->Register(HookMgr::REGTYPE_PACKET, entry, ev, functionRef);
|
sEluna->Register(HookMgr::REGTYPE_PACKET, entry, ev, functionRef);
|
||||||
|
|||||||
Reference in New Issue
Block a user