diff options
author | jackpoz <giacomopoz@gmail.com> | 2019-12-20 20:38:05 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-19 13:14:33 +0100 |
commit | e6ac3316b73d68d1ce776e5c740cafd3b7b0bad6 (patch) | |
tree | 9329e5641731c3f418725e07ecd83b795a16d099 /src | |
parent | e30683fda4fda1f6c9ad0d03f1f7aa225379ab38 (diff) |
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Maps/Map.cpp | 4 |
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()))) { |