forked from mirror/openmw-tes3mp
[Client] Stop drag and drop when setting player inventory
This commit is contained in:
parent
40e70ebf9c
commit
5fd9079b26
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue