Kaynağa Gözat

Update BuildingBehavior.cpp

Fixed warning
Xilmi 1 yıl önce
ebeveyn
işleme
e86ca49c37

+ 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);
 			closestThreat = std::min(closestThreat, threat.turn);
 		}
 		}
-		int fortLevel = developmentInfo.town->fortLevel();
 		for (auto& buildingInfo : developmentInfo.toBuild)
 		for (auto& buildingInfo : developmentInfo.toBuild)
 		{
 		{
 			if (closestThreat <= 1 && developmentInfo.town->fortLevel() < BuildingID::CASTLE && !buildingInfo.notEnoughRes)
 			if (closestThreat <= 1 && developmentInfo.town->fortLevel() < BuildingID::CASTLE && !buildingInfo.notEnoughRes)