Core/Maps: Fix a crash when spawning a spawn group
(cherry picked from commit 969436adfe8fc0f1c6a01d422ab7f6aa08486be3)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user