diff options
Diffstat (limited to 'src/Entities/Pickup.cpp')
-rw-r--r-- | src/Entities/Pickup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Pickup.cpp b/src/Entities/Pickup.cpp index 6cd709e08..05d1cd185 100644 --- a/src/Entities/Pickup.cpp +++ b/src/Entities/Pickup.cpp @@ -57,7 +57,7 @@ public: } m_Pickup->GetItem().AddCount(static_cast<char>(CombineCount)); - Item.m_ItemCount -= CombineCount; + Item.m_ItemCount -= static_cast<char>(CombineCount); if (Item.m_ItemCount <= 0) { @@ -246,7 +246,7 @@ bool cPickup::CollectedBy(cEntity & a_Dest) } auto & Villager = static_cast<cVillager &>(Mob); - int NumAdded = Villager.GetInventory().AddItem(m_Item); + char NumAdded = Villager.GetInventory().AddItem(m_Item); if (NumAdded > 0) { m_Item.m_ItemCount -= NumAdded; |