1
0

Change "Slot.IsEmpty()" to "Slot.m_ItemCount <= 0"

This commit is contained in:
Howaner 2014-05-31 00:22:24 +02:00
parent 843288493e
commit 01fc93857c

View File

@ -1452,7 +1452,7 @@ void cSlotAreaFurnace::Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a
DraggingItem.m_ItemCount = (char)(((float)Slot.m_ItemCount) / 2.f + 0.5f); DraggingItem.m_ItemCount = (char)(((float)Slot.m_ItemCount) / 2.f + 0.5f);
Slot.m_ItemCount -= DraggingItem.m_ItemCount; Slot.m_ItemCount -= DraggingItem.m_ItemCount;
if (Slot.IsEmpty()) if (Slot.m_ItemCount <= 0)
{ {
Slot.Empty(); Slot.Empty();
} }