1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Replace uint64_t with signed type to prevent overflow on substraction

This commit is contained in:
Ivan Savenko 2024-07-08 20:52:11 +00:00
parent 11a3da3f4f
commit 7445e950ba

View File

@ -32,7 +32,7 @@ struct SlotInfo
struct ArmyUpgradeInfo
{
std::vector<SlotInfo> resultingArmy;
uint64_t upgradeValue = 0;
int64_t upgradeValue = 0;
TResources upgradeCost;
void addArmyToBuy(std::vector<SlotInfo> army);