diff options
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r-- | src/gui/inventorywindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index a5849315b..67faedbad 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -220,7 +220,7 @@ InventoryWindow::InventoryWindow(Inventory *const inventory): instances.push_back(this); - if (inventory->isMainInventory()) + if (inventory && inventory->isMainInventory()) { updateDropButton(); } |