1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Try to fix build

This commit is contained in:
Dydzio
2025-01-23 22:27:52 +01:00
parent 1c1af5c04a
commit 4f707173df

View File

@@ -217,7 +217,7 @@ const CCreature * CGCreature::getCreature() const
TQuantity CGCreature::getJoiningAmount() 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<int64_t>(1), getStackCount(SlotID(0)) * cb->getSettings().getInteger(EGameSettings::CREATURES_JOINING_PERCENTAGE) / 100);
} }
void CGCreature::pickRandomObject(vstd::RNG & rand) void CGCreature::pickRandomObject(vstd::RNG & rand)