fix VisitObjects call

This commit is contained in:
Flerp 2025-11-01 17:00:46 -07:00
parent 7de504c0af
commit 41b2cfb9a8

View File

@ -40,7 +40,7 @@ namespace
std::list<GameObject*> goList; std::list<GameObject*> goList;
Acore::AllGameObjectsMatchingOneEntryInRange check(plr, sBobberEntries, sScanRange); Acore::AllGameObjectsMatchingOneEntryInRange check(plr, sBobberEntries, sScanRange);
Acore::GameObjectListSearcher<Acore::AllGameObjectsMatchingOneEntryInRange> searcher(plr, goList, check); Acore::GameObjectListSearcher<Acore::AllGameObjectsMatchingOneEntryInRange> searcher(plr, goList, check);
Cell::VisitGridObjects(plr, searcher, sScanRange); Cell::VisitObjects(plr, searcher, sScanRange);
for (GameObject* go : goList) for (GameObject* go : goList)
{ {