From 69177843b6370fa89986f415bed97b7214467deb Mon Sep 17 00:00:00 2001 From: Foereaper Date: Tue, 7 Oct 2014 15:33:49 +0200 Subject: [PATCH] Fixed RegisterPacketEvent typo --- GlobalMethods.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GlobalMethods.h b/GlobalMethods.h index a495923..7e2f1fb 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -482,8 +482,8 @@ namespace LuaGlobalFunctions { uint32 entry = Eluna::CHECKVAL(L, 1); uint32 ev = Eluna::CHECKVAL(L, 2); - luaL_checktype(L, 2, LUA_TFUNCTION); - lua_pushvalue(L, 2); + luaL_checktype(L, 3, LUA_TFUNCTION); + lua_pushvalue(L, 3); int functionRef = luaL_ref(L, LUA_REGISTRYINDEX); if (functionRef > 0) sEluna->Register(HookMgr::REGTYPE_PACKET, entry, ev, functionRef);