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

@@ -14,7 +14,7 @@ void NearestFriendlyPlayersValue::FindUnits(std::list<Unit*>& targets)
{
Acore::AnyFriendlyUnitInObjectRangeCheck u_check(bot, bot, range);
Acore::UnitListSearcher<Acore::AnyFriendlyUnitInObjectRangeCheck> searcher(bot, targets, u_check);
Cell::VisitAllObjects(bot, searcher, range);
Cell::VisitObjects(bot, searcher, range);
}
bool NearestFriendlyPlayersValue::AcceptUnit(Unit* unit)