From b2cdec8efa9be0b026f87c8f0c8d55f389a5eb9f Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 5 Feb 2017 15:35:40 +0200 Subject: [PATCH] [Client] Send ID_PLAYER_INVENTORY upon dropping an item, 2nd attempt --- apps/openmw/mwgui/hud.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/hud.cpp b/apps/openmw/mwgui/hud.cpp index f22243335..20e8d69d7 100644 --- a/apps/openmw/mwgui/hud.cpp +++ b/apps/openmw/mwgui/hud.cpp @@ -88,8 +88,6 @@ namespace MWGui event->addObject(worldObject); - // LocalPlayer's inventory has changed, so send a packet with it - mwmp::Main::get().getLocalPlayer()->sendInventory(); mwmp::Main::get().getNetworking()->getWorldPacket(ID_OBJECT_PLACE)->Send(event); LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Sending ID_OBJECT_PLACE\n- cellRef: %s, %i\n- count: %i", @@ -293,6 +291,9 @@ namespace MWGui WorldItemModel drop (mouseX, mouseY); mDragAndDrop->drop(&drop, NULL); + // LocalPlayer's inventory has changed, so send a packet with it + mwmp::Main::get().getLocalPlayer()->sendInventory(); + MWBase::Environment::get().getWindowManager()->changePointer("arrow"); } else