auto > char

This commit is contained in:
x12xx12x 2021-11-26 19:19:49 +01:00 committed by Alexander Harkness
parent 2ec73a3fbd
commit d7c2c4acf3

View File

@ -254,7 +254,7 @@ bool cHopperEntity::MovePickupsIn(cChunk & a_Chunk)
{
m_bFoundPickupsAbove = true;
char PreviousCount = m_Contents.GetSlot(i).m_ItemCount;
auto PreviousCount = m_Contents.GetSlot(i).m_ItemCount;
Item.m_ItemCount -= m_Contents.ChangeSlotCount(i, Item.m_ItemCount) - PreviousCount; // Set count to however many items were added