mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 21:45:33 +00:00
Don't reset temporarily hidden container window
This commit is contained in:
parent
4ae504970f
commit
f1b7cd5404
1 changed files with 5 additions and 0 deletions
|
@ -163,6 +163,10 @@ namespace MWGui
|
|||
{
|
||||
WindowBase::onClose();
|
||||
|
||||
// Make sure the window was actually closed and not temporarily hidden.
|
||||
if (MWBase::Environment::get().getWindowManager()->containsMode(GM_Container))
|
||||
return;
|
||||
|
||||
if (mModel)
|
||||
mModel->onClose();
|
||||
|
||||
|
@ -185,6 +189,7 @@ namespace MWGui
|
|||
|
||||
// transfer everything into the player's inventory
|
||||
ItemModel* playerModel = MWBase::Environment::get().getWindowManager()->getInventoryWindow()->getModel();
|
||||
assert(mModel);
|
||||
mModel->update();
|
||||
|
||||
// unequip all items to avoid unequipping/reequipping
|
||||
|
|
Loading…
Reference in a new issue