mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 04:37:01 +00:00
Replace some MapManager::Instance().GetMap() calls with WorldObject::GetMap()
This commit is contained in:
parent
c37cfd0c2f
commit
ac00eee418
23 changed files with 105 additions and 105 deletions
|
|
@ -93,8 +93,8 @@ TotemAI::UpdateAI(const uint32 /*diff*/)
|
|||
TypeContainerVisitor<MaNGOS::UnitLastSearcher<MaNGOS::NearestAttackableUnitInObjectRangeCheck>, WorldTypeMapContainer > world_object_checker(checker);
|
||||
|
||||
CellLock<GridReadGuard> cell_lock(cell, p);
|
||||
cell_lock->Visit(cell_lock, grid_object_checker, *MapManager::Instance().GetMap(i_totem.GetMapId(), &i_totem));
|
||||
cell_lock->Visit(cell_lock, world_object_checker, *MapManager::Instance().GetMap(i_totem.GetMapId(), &i_totem));
|
||||
cell_lock->Visit(cell_lock, grid_object_checker, *i_totem.GetMap());
|
||||
cell_lock->Visit(cell_lock, world_object_checker, *i_totem.GetMap());
|
||||
}
|
||||
|
||||
// If have target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue