Fixed bug with SPAWN:GetLastAliveGroup() issue 1141

Changed line 2208
This commit is contained in:
Wingthor 2019-04-07 02:56:41 +02:00
parent c2b46ceea1
commit 8126b198ba

View File

@ -2204,9 +2204,8 @@ end
-- end
function SPAWN:GetLastAliveGroup()
self:F( { self.SpawnTemplatePrefix, self.SpawnAliasPrefix } )
self.SpawnIndex = self:_GetLastIndex()
for SpawnIndex = self.SpawnIndex, 1, -1 do
for SpawnIndex = self.SpawnCount, 1, -1 do -- Added
local SpawnGroup = self:GetGroupFromIndex( SpawnIndex )
if SpawnGroup and SpawnGroup:IsAlive() then
self.SpawnIndex = SpawnIndex