Core/Maps: Fix a crash when spawning a spawn group
This commit is contained in:
1 parent
9e2c08cd2c
commit
6420e84773
1 file changed
+1
-1
@@ -3316,6 +3316,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;
|
||||
@@ -3366,7 +3367,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