[Client] Stop drag and drop when setting player inventory

0.6.2 tes3mp-0.6.2
David Cernat 7 years ago
parent 40e70ebf9c
commit 5fd9079b26

@ -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();

Loading…
Cancel
Save