diff options
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r-- | src/game/Chat.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index bd338c8eb28..5f8556fbdb0 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -30,7 +30,6 @@ #include "Player.h" #include "UpdateMask.h" #include "Chat.h" -#include "MapManager.h" #include "GridNotifiersImpl.h" #include "CellImpl.h" #include "AccountMgr.h" @@ -1354,7 +1353,7 @@ GameObject* ChatHandler::GetObjectGlobalyWithGuidOrNearWithDbGuid(uint32 lowguid TypeContainerVisitor<Trinity::GameObjectSearcher<Trinity::GameObjectWithDbGUIDCheck>, GridTypeMapContainer > object_checker(checker); CellLock<GridReadGuard> cell_lock(cell, p); - cell_lock->Visit(cell_lock, object_checker, *MapManager::Instance().GetMap(pl->GetMapId(), pl)); + cell_lock->Visit(cell_lock, object_checker, *pl->GetMap()); } return obj; |