This commit is contained in:
Shauren
2017-05-13 19:37:33 +02:00
parent 229c78b5a3
commit 9299e9bde0
53 changed files with 227 additions and 384 deletions

View File

@@ -771,7 +771,7 @@ GameObject* ChatHandler::GetNearbyGameObject()
GameObject* obj = nullptr;
Trinity::NearestGameObjectCheck check(*pl);
Trinity::GameObjectLastSearcher<Trinity::NearestGameObjectCheck> searcher(pl, obj, check);
pl->VisitNearbyGridObject(SIZE_OF_GRIDS, searcher);
Cell::VisitGridObjects(pl, searcher, SIZE_OF_GRIDS);
return obj;
}