From 7445e950bac4b7d5510cbb81f6cace940f047973 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 8 Jul 2024 20:52:11 +0000 Subject: [PATCH] Replace uint64_t with signed type to prevent overflow on substraction --- AI/Nullkiller/Analyzers/ArmyManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/Nullkiller/Analyzers/ArmyManager.h b/AI/Nullkiller/Analyzers/ArmyManager.h index 1617bd1bd..96b178c6d 100644 --- a/AI/Nullkiller/Analyzers/ArmyManager.h +++ b/AI/Nullkiller/Analyzers/ArmyManager.h @@ -32,7 +32,7 @@ struct SlotInfo struct ArmyUpgradeInfo { std::vector resultingArmy; - uint64_t upgradeValue = 0; + int64_t upgradeValue = 0; TResources upgradeCost; void addArmyToBuy(std::vector army);