Core/Maps: Fix a crash when spawning a spawn group
Port From (https://github.com/TrinityCore/TrinityCore/commit/19f24b3e40c5dd56939824a50846fcb437f4a8cd)
This commit is contained in:
@@ -2687,6 +2687,7 @@ namespace Game.Maps
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetSpawnGroupActive(groupId, true); // start processing respawns for the group
|
||||||
foreach (var data in Global.ObjectMgr.GetSpawnDataForGroup(groupId))
|
foreach (var data in Global.ObjectMgr.GetSpawnDataForGroup(groupId))
|
||||||
{
|
{
|
||||||
Cypher.Assert(groupData.mapId == data.spawnPoint.GetMapId());
|
Cypher.Assert(groupData.mapId == data.spawnPoint.GetMapId());
|
||||||
@@ -2739,7 +2740,7 @@ namespace Game.Maps
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SetSpawnGroupActive(groupId, true); // start processing respawns for the group
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user