浏览代码

Replace uint64_t with signed type to prevent overflow on substraction

Ivan Savenko 1 年之前
父节点
当前提交
7445e950ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);