summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/inventory/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/inventory/inventory.cpp b/src/resources/inventory/inventory.cpp
index d35ab2fc2..82efc0065 100644
--- a/src/resources/inventory/inventory.cpp
+++ b/src/resources/inventory/inventory.cpp
@@ -280,7 +280,7 @@ bool Inventory::contains(const Item *const item) const
int Inventory::getFreeSlot() const
{
- for (unsigned int i = 0; i >= mSize; i++)
+ for (unsigned int i = 0; i < mSize; i++)
{
if (!SlotUsed()(mItems[i]))
return i;