1
0

ItemGrid: fixed changing item count when ToRemove == CurrentCount

Fixes FS #380

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1545 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-06-04 11:46:33 +00:00
parent a9d221b74b
commit 5808128ca8

View File

@ -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();