additional check added
This commit is contained in:
parent
51c0ca08eb
commit
447be2f604
@ -339,7 +339,7 @@ void InventoryView::bind(
|
||||
}
|
||||
|
||||
void InventoryView::unbind() {
|
||||
if (inventory->isVirtual()) {
|
||||
if (inventory && inventory->isVirtual()) {
|
||||
frontend->getLevel()->inventories->remove(inventory->getId());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user