From e6ac3316b73d68d1ce776e5c740cafd3b7b0bad6 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Fri, 20 Dec 2019 20:38:05 +0100 Subject: Core/Map: Load the grid of TempSummons owned by Players Ensure to load the grid of TempSummons owned by Players when the relocate to another cell (cherry picked from commit afbc47891965f9c31c4b31c66931a2dbc9846f93) --- src/server/game/Maps/Map.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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()))) { -- cgit v1.2.3