summaryrefslogtreecommitdiffstats
path: root/source/ItemGrid.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/ItemGrid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ItemGrid.cpp b/source/ItemGrid.cpp
index 33cae3e17..5284f3ae1 100644
--- a/source/ItemGrid.cpp
+++ b/source/ItemGrid.cpp
@@ -304,7 +304,7 @@ int cItemGrid::ChangeSlotCount(int a_SlotNum, int a_AddToCount)
return 0;
}
- if (m_Slots[a_SlotNum].m_ItemCount < -a_AddToCount)
+ if (m_Slots[a_SlotNum].m_ItemCount <= -a_AddToCount)
{
// Trying to remove more items than there already are, make the item empty
m_Slots[a_SlotNum].Empty();