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:
parent
11a3da3f4f
commit
7445e950ba
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user