summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/inventorywindow.h')
-rw-r--r--src/gui/windows/inventorywindow.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/inventorywindow.h b/src/gui/windows/inventorywindow.h
index 062ac6bce..eca01ab05 100644
--- a/src/gui/windows/inventorywindow.h
+++ b/src/gui/windows/inventorywindow.h
@@ -128,7 +128,7 @@ class InventoryWindow final : public Window,
void slotsChanged(Inventory *const inventory) override final;
bool isMainInventory() const A_WARN_UNUSED
- { return mInventory->isMainInventory(); }
+ { return mInventory ? mInventory->isMainInventory() : false; }
/**
* Returns true if any instances exist.
@@ -174,7 +174,7 @@ class InventoryWindow final : public Window,
static WindowList invInstances;
Inventory *mInventory;
- ItemContainer *mItems;
+ ItemContainer *mItems A_NONNULLPOINTER;
Button *mUseButton;
Button *mDropButton;