From 8cf99616d01f317102234ef24cb664b41dd7b537 Mon Sep 17 00:00:00 2001 From: Xilmi Date: Mon, 19 Aug 2024 21:21:56 +0200 Subject: [PATCH] Update BuildingBehavior.cpp Fixed a warning which, in this case, was actually also a logical error! :o --- AI/Nullkiller/Behaviors/BuildingBehavior.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/Nullkiller/Behaviors/BuildingBehavior.cpp b/AI/Nullkiller/Behaviors/BuildingBehavior.cpp index 551f0d73c..cb9af8405 100644 --- a/AI/Nullkiller/Behaviors/BuildingBehavior.cpp +++ b/AI/Nullkiller/Behaviors/BuildingBehavior.cpp @@ -60,7 +60,7 @@ Goals::TGoalVec BuildingBehavior::decompose(const Nullkiller * ai) const } for (auto& buildingInfo : developmentInfo.toBuild) { - if (closestThreat <= 1 && developmentInfo.town->fortLevel() < BuildingID::CASTLE && !buildingInfo.notEnoughRes) + if (closestThreat <= 1 && developmentInfo.town->fortLevel() < CGTownInstance::EFortLevel::CASTLE && !buildingInfo.notEnoughRes) { if (buildingInfo.id == BuildingID::FORT || buildingInfo.id == BuildingID::CITADEL || buildingInfo.id == BuildingID::CASTLE) tasks.push_back(sptr(BuildThis(buildingInfo, developmentInfo)));