mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-14 23:05:57 -04:00
Fix exception when clicking on statics when in the inventory window
This commit is contained in:
parent
37a59a37c6
commit
27d0d9c592
@ -267,7 +267,8 @@ namespace MWGui
|
|||||||
else if ((mode == GM_Container) || (mode == GM_Inventory))
|
else if ((mode == GM_Container) || (mode == GM_Inventory))
|
||||||
{
|
{
|
||||||
// pick up object
|
// pick up object
|
||||||
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->pickUpObject(object);
|
if (!object.isEmpty())
|
||||||
|
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->pickUpObject(object);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user