[Client] Stop drag and drop when setting player inventory

This commit is contained in:
David Cernat 2017-12-25 05:41:13 +02:00
parent 40e70ebf9c
commit 5fd9079b26

View file

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