summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index e05264f9f..8e0d3a179 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -1514,12 +1514,12 @@ void cMonster::AddRandomDropItem(cItems & a_Drops, unsigned int a_Min, unsigned
auto MaxStackSize = static_cast<unsigned int>(cItem(a_Item).GetMaxStackSize());
while (Count > MaxStackSize)
{
- a_Drops.emplace_back(a_Item, MaxStackSize, a_ItemHealth);
+ a_Drops.emplace_back(a_Item, static_cast<char>(MaxStackSize), a_ItemHealth);
Count -= MaxStackSize;
}
if (Count > 0)
{
- a_Drops.emplace_back(a_Item, Count, a_ItemHealth);
+ a_Drops.emplace_back(a_Item, static_cast<char>(Count), a_ItemHealth);
}
}