mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Merge pull request #359 from Yehonal/patch-1
fix: wrong packet value in OnPacketReceiveOne
This commit is contained in:
@@ -116,7 +116,7 @@ void Eluna::OnPacketReceiveAny(Player* player, WorldPacket& packet, bool& result
|
|||||||
|
|
||||||
void Eluna::OnPacketReceiveOne(Player* player, WorldPacket& packet, bool& result)
|
void Eluna::OnPacketReceiveOne(Player* player, WorldPacket& packet, bool& result)
|
||||||
{
|
{
|
||||||
START_HOOK_PACKET(PACKET_EVENT_ON_PACKET_SEND, packet.GetOpcode());
|
START_HOOK_PACKET(PACKET_EVENT_ON_PACKET_RECEIVE, packet.GetOpcode());
|
||||||
Push(new WorldPacket(packet));
|
Push(new WorldPacket(packet));
|
||||||
Push(player);
|
Push(player);
|
||||||
int n = SetupStack(PacketEventBindings, key, 2);
|
int n = SetupStack(PacketEventBindings, key, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user