Update HookMgr.cpp

This commit is contained in:
Rochet2
2014-03-24 12:39:58 +02:00
committed by Foereaper
parent 517cd62b51
commit 51b6b839a8

View File

@@ -1223,7 +1223,7 @@ bool HookMgr::OnPacketSend(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->ServerEventBindings.EndCall(); sEluna->ServerEventBindings.EndCall();
@@ -1240,7 +1240,7 @@ bool HookMgr::OnPacketSend(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();
@@ -1266,7 +1266,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->ServerEventBindings.EndCall(); sEluna->ServerEventBindings.EndCall();