Browse Source

Try to fix build

Dydzio 9 months ago
parent
commit
4f707173df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/mapObjects/CGCreature.cpp

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