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

This commit is contained in:
Treeston authored and Aokromes committed 2018-08-29 19:26:10 +02:00
1 parent 9e2c08cd2c
commit 6420e84773
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}