mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed bug with SPAWN:GetLastAliveGroup() issue 1141
Changed line 2208
This commit is contained in:
parent
c2b46ceea1
commit
8126b198ba
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user