forked from teamnwah/openmw-tes3coop
Fix exception when clicking on statics when in the inventory window
This commit is contained in:
parent
37a59a37c6
commit
27d0d9c592
1 changed files with 2 additions and 1 deletions
|
@ -267,7 +267,8 @@ namespace MWGui
|
|||
else if ((mode == GM_Container) || (mode == GM_Inventory))
|
||||
{
|
||||
// pick up object
|
||||
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->pickUpObject(object);
|
||||
if (!object.isEmpty())
|
||||
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->pickUpObject(object);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue