summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r--src/gui/windows/inventorywindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index a57565d7f..d4f27fd74 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -327,7 +327,7 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) :
invInstances.push_back(this);
- if (inventory && inventory->isMainInventory())
+ if (inventory->isMainInventory())
{
updateDropButton();
}