Merge pull request #1142 from FlightControl-Master/wingthor_fixes

Wingthor fixes
This commit is contained in:
thebgpikester 2019-05-26 15:29:09 +01:00 committed by GitHub
commit e92a625c5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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