summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-04 13:46:33 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-04 13:46:33 +0200
commit5808128ca863a53a91fc174ddce787e7e2815a5c (patch)
tree24566b65891d5cea8d1e19c719a43a9279fc4718 /source
parentToLuaDoxy: initial import (diff)
downloadcuberite-5808128ca863a53a91fc174ddce787e7e2815a5c.tar
cuberite-5808128ca863a53a91fc174ddce787e7e2815a5c.tar.gz
cuberite-5808128ca863a53a91fc174ddce787e7e2815a5c.tar.bz2
cuberite-5808128ca863a53a91fc174ddce787e7e2815a5c.tar.lz
cuberite-5808128ca863a53a91fc174ddce787e7e2815a5c.tar.xz
cuberite-5808128ca863a53a91fc174ddce787e7e2815a5c.tar.zst
cuberite-5808128ca863a53a91fc174ddce787e7e2815a5c.zip
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();