From caae524a0a570cdcf47a825d0ff7acafab53bc84 Mon Sep 17 00:00:00 2001 From: Keleborn <22352763+Celandriel@users.noreply.github.com> Date: Fri, 30 Jan 2026 12:50:09 -0800 Subject: [PATCH] Minor flightMasterCache fix. (#2085) # Pull Request Incorrect comparison fix. --- ## How to Test the Changes - Alliance Bots should now be able to find the correct flightmaster and use it ## Complexity & Impact - Does this change add new decision branches? - [X] No - [ ] Yes (**explain below**) - Does this change increase per-bot or per-tick processing? - [X] No - [ ] Yes (**describe and justify impact**) - Could this logic scale poorly under load? - [X] No - [ ] Yes (**explain why**) --- ## Defaults & Configuration - Does this change modify default bot behavior? - [X] No - [ ] Yes (**explain why**) If this introduces more advanced or AI-heavy logic: - [X] Lightweight mode remains the default - [ ] More complex behavior is optional and thereby configurable --- ## AI Assistance - Was AI assistance (e.g. ChatGPT or similar tools) used while working on this change? - [X] No - [ ] Yes (**explain below**) --- ## Final Checklist - [X] Stability is not compromised - [X] Performance impact is understood, tested, and acceptable - [X] Added logic complexity is justified and explained - [X] Documentation updated if needed --- src/Db/FlightMasterCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Db/FlightMasterCache.cpp b/src/Db/FlightMasterCache.cpp index c708e09c..effe2499 100644 --- a/src/Db/FlightMasterCache.cpp +++ b/src/Db/FlightMasterCache.cpp @@ -13,7 +13,7 @@ void FlightMasterCache::AddAllianceFlightMaster(uint32 entry, WorldPosition pos) Creature* FlightMasterCache::GetNearestFlightMaster(Player* bot) { std::map& flightMasterCache = - (bot->GetTeamId() == ALLIANCE) ? allianceFlightMasterCache : hordeFlightMasterCache; + (bot->GetTeamId() == TEAM_ALLIANCE) ? allianceFlightMasterCache : hordeFlightMasterCache; Creature* nearestFlightMaster = nullptr; float nearestDistance = std::numeric_limits::max();