From 7e088fdfe3c77083606bce955624aef1da59bb32 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Wed, 4 Mar 2015 15:27:53 +0100 Subject: We always know playerSAO when calling SendInventory. Using it instead of searching it via peer_id --- src/network/packethandlers/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/packethandlers') diff --git a/src/network/packethandlers/server.cpp b/src/network/packethandlers/server.cpp index 526c17344..aeaa2f3f3 100644 --- a/src/network/packethandlers/server.cpp +++ b/src/network/packethandlers/server.cpp @@ -1391,7 +1391,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt) // Apply returned ItemStack if (playersao->setWieldedItem(item)) { - SendInventory(pkt->getPeerId()); + SendInventory(playersao); } } -- cgit v1.2.3