Przeglądaj źródła

Replace uint64_t with signed type to prevent overflow on substraction

Ivan Savenko 1 rok temu
rodzic
commit
7445e950ba
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      AI/Nullkiller/Analyzers/ArmyManager.h

+ 1 - 1
AI/Nullkiller/Analyzers/ArmyManager.h

@@ -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);