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

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