Ver Fonte

Replace uint64_t with signed type to prevent overflow on substraction

Ivan Savenko há 1 ano atrás
pai
commit
7445e950ba
1 ficheiros alterados com 1 adições e 1 exclusões
  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);