diff --git a/lib/mapObjects/CGCreature.cpp b/lib/mapObjects/CGCreature.cpp index f3ec07985..049b07923 100644 --- a/lib/mapObjects/CGCreature.cpp +++ b/lib/mapObjects/CGCreature.cpp @@ -217,7 +217,7 @@ const CCreature * CGCreature::getCreature() const TQuantity CGCreature::getJoiningAmount() const { - return std::max(1L, getStackCount(SlotID(0)) * cb->getSettings().getInteger(EGameSettings::CREATURES_JOINING_PERCENTAGE) / 100); + return std::max(static_cast(1), getStackCount(SlotID(0)) * cb->getSettings().getInteger(EGameSettings::CREATURES_JOINING_PERCENTAGE) / 100); } void CGCreature::pickRandomObject(vstd::RNG & rand)