Change "Slot.IsEmpty()" to "Slot.m_ItemCount <= 0"
This commit is contained in:
parent
843288493e
commit
01fc93857c
@ -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);
|
||||
Slot.m_ItemCount -= DraggingItem.m_ItemCount;
|
||||
|
||||
if (Slot.IsEmpty())
|
||||
if (Slot.m_ItemCount <= 0)
|
||||
{
|
||||
Slot.Empty();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user