mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
additional check added
This commit is contained in:
parent
51c0ca08eb
commit
447be2f604
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ void InventoryView::bind(
|
|||
}
|
||||
|
||||
void InventoryView::unbind() {
|
||||
if (inventory->isVirtual()) {
|
||||
if (inventory && inventory->isVirtual()) {
|
||||
frontend->getLevel()->inventories->remove(inventory->getId());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue