mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
[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::Ptr ptrPlayer = getPlayerPtr();
|
||||||
MWWorld::ContainerStore &ptrStore = ptrPlayer.getClass().getContainerStore(ptrPlayer);
|
MWWorld::ContainerStore &ptrStore = ptrPlayer.getClass().getContainerStore(ptrPlayer);
|
||||||
|
|
||||||
|
// Ensure no item is being drag and dropped
|
||||||
|
MWBase::Environment::get().getWindowManager()->finishDragDrop();
|
||||||
|
|
||||||
// Clear items in inventory
|
// Clear items in inventory
|
||||||
ptrStore.clear();
|
ptrStore.clear();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue