From 7a6670c61c3fe8703766d9a0495532c9a3d77fe7 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 2 Nov 2021 14:25:36 -0400 Subject: [PATCH] Core/Maps: Fix a crash when spawning a spawn group Port From (https://github.com/TrinityCore/TrinityCore/commit/19f24b3e40c5dd56939824a50846fcb437f4a8cd) --- Source/Game/Maps/Map.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Game/Maps/Map.cs b/Source/Game/Maps/Map.cs index cc05711bd..74615d44c 100644 --- a/Source/Game/Maps/Map.cs +++ b/Source/Game/Maps/Map.cs @@ -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; }