From 5fd9079b26a60d3a8a52299d0ea8146b85323339 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 25 Dec 2017 05:41:13 +0200 Subject: [PATCH] [Client] Stop drag and drop when setting player inventory --- apps/openmw/mwmp/LocalPlayer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 674726ef8..b19189429 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -993,6 +993,9 @@ void LocalPlayer::setInventory() MWWorld::Ptr ptrPlayer = getPlayerPtr(); MWWorld::ContainerStore &ptrStore = ptrPlayer.getClass().getContainerStore(ptrPlayer); + // Ensure no item is being drag and dropped + MWBase::Environment::get().getWindowManager()->finishDragDrop(); + // Clear items in inventory ptrStore.clear();