Update HookMgr.cpp

This commit is contained in:
Rochet2
2014-03-24 13:07:45 +02:00
committed by Foereaper
parent 51b6b839a8
commit 0e79b2a499

View File

@@ -1283,7 +1283,7 @@ bool HookMgr::OnPacketReceive(WorldSession* session, WorldPacket& packet)
WorldPacket* data = sEluna->CHECKOBJ<WorldPacket>(sEluna->L, i, false); WorldPacket* data = sEluna->CHECKOBJ<WorldPacket>(sEluna->L, i, false);
if (data) if (data)
packet = *data; packet = *data;
if (!sEluna->CHECKOBJ<bool>(sEluna->L, i, true)) if (!sEluna->CHECKVAL<bool>(sEluna->L, i, true))
result = false; result = false;
} }
sEluna->PacketEventBindings.EndCall(); sEluna->PacketEventBindings.EndCall();