From 51b6b839a8bca8f3d10ae750335c8f38d49a1de1 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Mon, 24 Mar 2014 12:39:58 +0200 Subject: [PATCH] Update HookMgr.cpp --- HookMgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HookMgr.cpp b/HookMgr.cpp index 10cd33b..9978f1c 100644 --- a/HookMgr.cpp +++ b/HookMgr.cpp @@ -1223,7 +1223,7 @@ bool HookMgr::OnPacketSend(WorldSession* session, WorldPacket& packet) WorldPacket* data = sEluna->CHECKOBJ(sEluna->L, i, false); if (data) packet = *data; - if (!sEluna->CHECKOBJ(sEluna->L, i, true)) + if (!sEluna->CHECKVAL(sEluna->L, i, true)) result = false; } sEluna->ServerEventBindings.EndCall(); @@ -1240,7 +1240,7 @@ bool HookMgr::OnPacketSend(WorldSession* session, WorldPacket& packet) WorldPacket* data = sEluna->CHECKOBJ(sEluna->L, i, false); if (data) packet = *data; - if (!sEluna->CHECKOBJ(sEluna->L, i, true)) + if (!sEluna->CHECKVAL(sEluna->L, i, true)) result = false; } sEluna->PacketEventBindings.EndCall(); @@ -1266,7 +1266,7 @@ bool HookMgr::OnPacketReceive(WorldSession* session, WorldPacket& packet) WorldPacket* data = sEluna->CHECKOBJ(sEluna->L, i, false); if (data) packet = *data; - if (!sEluna->CHECKOBJ(sEluna->L, i, true)) + if (!sEluna->CHECKVAL(sEluna->L, i, true)) result = false; } sEluna->ServerEventBindings.EndCall();