Core/Maps: Fix a crash when spawning a spawn group

Port From (https://github.com/TrinityCore/TrinityCore/commit/19f24b3e40c5dd56939824a50846fcb437f4a8cd)
This commit is contained in:
hondacrx
2021-11-02 14:25:36 -04:00
parent dad2f6c5a5
commit 7a6670c61c
+2 -1
View File
@@ -2687,6 +2687,7 @@ namespace Game.Maps
return false;
}
SetSpawnGroupActive(groupId, true); // start processing respawns for the group
foreach (var data in Global.ObjectMgr.GetSpawnDataForGroup(groupId))
{
Cypher.Assert(groupData.mapId == data.spawnPoint.GetMapId());
@@ -2739,7 +2740,7 @@ namespace Game.Maps
return false;
}
}
SetSpawnGroupActive(groupId, true); // start processing respawns for the group
return true;
}