aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Maps/Map.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp
index 11c4fa5c542..e1b8b99bd8b 100644
--- a/src/server/game/Maps/Map.cpp
+++ b/src/server/game/Maps/Map.cpp
@@ -1584,6 +1584,10 @@ bool Map::MapObjectCellRelocation(T* object, Cell new_cell, char const* objType)
return true;
}
+ if (Creature* c = object->ToCreature())
+ if (c->GetCharmerOrOwnerGUID().IsPlayer())
+ EnsureGridLoaded(new_cell);
+
// in diff. loaded grid normal object
if (IsGridLoaded(GridCoord(new_cell.GridX(), new_cell.GridY())))
{