Scripts/InstanceScript: Fix an issue where LoadAllGrids would load creatures before TeamInInstance was properly set

Port From (https://github.com/TrinityCore/TrinityCore/commit/5a20f14a9920a16545d913fc8e444c161c2a92bb)
This commit is contained in:
hondacrx
2022-03-11 18:01:21 -05:00
parent 70ba25ad06
commit 84de4826e4
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ namespace Game.Maps
Log.outDebug(LogFilter.Maps, "MapInstanced.CreateInstance: {0} map instance {1} for {2} created with difficulty {3}", save != null ? "" : "new ", InstanceId, GetId(), difficulty);
InstanceMap map = new(GetId(), GetGridExpiry(), InstanceId, difficulty, this);
InstanceMap map = new(GetId(), GetGridExpiry(), InstanceId, difficulty, this, teamId);
Cypher.Assert(map.IsDungeon());
map.LoadRespawnTimes();