aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-12-20 20:38:05 +0100
committerjackpoz <giacomopoz@gmail.com>2019-12-21 16:27:46 +0100
commitafbc47891965f9c31c4b31c66931a2dbc9846f93 (patch)
treedb913718ad5435ad09c6584318bdf65b74b6b4f5 /src
parent175eba74aee742b8aa97b940983a0ddbd7b4bdf7 (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
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Maps/Map.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp
index d49899c08d4..8d2f2af30a9 100644
--- a/src/server/game/Maps/Map.cpp
+++ b/src/server/game/Maps/Map.cpp
@@ -1412,6 +1412,9 @@ bool Map::CreatureCellRelocation(Creature* c, Cell new_cell)
return true;
}
+ if (c->GetCharmerOrOwnerGUID().IsPlayer())
+ EnsureGridLoaded(new_cell);
+
// in diff. loaded grid normal creature
if (IsGridLoaded(GridCoord(new_cell.GridX(), new_cell.GridY())))
{