mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16: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
|
|
@ -5413,7 +5413,7 @@ bool ChatHandler::HandleRespawnCommand(const char* /*args*/)
|
|||
|
||||
TypeContainerVisitor<MaNGOS::WorldObjectWorker<MaNGOS::RespawnDo>, GridTypeMapContainer > obj_worker(worker);
|
||||
CellLock<GridReadGuard> cell_lock(cell, p);
|
||||
cell_lock->Visit(cell_lock, obj_worker, *MapManager::Instance().GetMap(pl->GetMapId(), pl));
|
||||
cell_lock->Visit(cell_lock, obj_worker, *pl->GetMap());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue