瀏覽代碼

Update BuildingBehavior.cpp

Fixed warning
Xilmi 1 年之前
父節點
當前提交
e86ca49c37
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      AI/Nullkiller/Behaviors/BuildingBehavior.cpp

+ 0 - 1
AI/Nullkiller/Behaviors/BuildingBehavior.cpp

@@ -58,7 +58,6 @@ Goals::TGoalVec BuildingBehavior::decompose(const Nullkiller * ai) const
 		{
 			closestThreat = std::min(closestThreat, threat.turn);
 		}
-		int fortLevel = developmentInfo.town->fortLevel();
 		for (auto& buildingInfo : developmentInfo.toBuild)
 		{
 			if (closestThreat <= 1 && developmentInfo.town->fortLevel() < BuildingID::CASTLE && !buildingInfo.notEnoughRes)