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