summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/itemcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index 1de08b57..f727d820 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -222,7 +222,7 @@ int ItemContainer::getNumberOfSlotsUsed()
int NumberOfFilledSlot = 0;
for (int i = 0; i < INVENTORY_SIZE; i++)
{
- if (items[i].quantity > 0)
+ if (items[i].id > -1 || items[i].quantity > 0)
{
NumberOfFilledSlot++;
}