VisitAllObjects to VisitObjects (sync with acore) (#1513)

This commit is contained in:
Yunfan Li
2025-08-09 19:17:33 +08:00
committed by GitHub
parent 966bf1d6af
commit a307eb2f08
13 changed files with 22 additions and 22 deletions

View File

@@ -2180,7 +2180,7 @@ void RandomPlayerbotMgr::RandomTeleport(Player* bot)
float range = sPlayerbotAIConfig->randomBotTeleportDistance;
Acore::AnyUnitInObjectRangeCheck u_check(bot, range);
Acore::UnitListSearcher<Acore::AnyUnitInObjectRangeCheck> searcher(bot, targets, u_check);
Cell::VisitAllObjects(bot, searcher, range);
Cell::VisitObjects(bot, searcher, range);
if (!targets.empty())
{