From e86ca49c379a9ce341f086d50d20382a5699efb3 Mon Sep 17 00:00:00 2001 From: Xilmi Date: Mon, 19 Aug 2024 21:15:25 +0200 Subject: [PATCH] Update BuildingBehavior.cpp Fixed warning --- AI/Nullkiller/Behaviors/BuildingBehavior.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/AI/Nullkiller/Behaviors/BuildingBehavior.cpp b/AI/Nullkiller/Behaviors/BuildingBehavior.cpp index b24ce0079..551f0d73c 100644 --- a/AI/Nullkiller/Behaviors/BuildingBehavior.cpp +++ b/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)