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

(cherry picked from commit 969436adfe8fc0f1c6a01d422ab7f6aa08486be3)
This commit is contained in:
Treeston
2021-10-23 16:00:28 +02:00
committed by Shauren
parent ca5df17dc2
commit 19f24b3e40
+1 -1
View File
@@ -3438,6 +3438,7 @@ bool Map::SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn, bool force, std::v
return false;
}
SetSpawnGroupActive(groupId, true); // start processing respawns for the group
for (auto& pair : sObjectMgr->GetSpawnDataForGroup(groupId))
{
SpawnData const* data = pair.second;
@@ -3488,7 +3489,6 @@ bool Map::SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn, bool force, std::v
return false;
}
}
SetSpawnGroupActive(groupId, true); // start processing respawns for the group
return true;
}