Fixed bug with Restart Group after landing and engine shutdown...

- Due to rename GetDCSGroup to GetDCSObject.
This commit is contained in:
FlightControl 2016-07-04 16:49:17 +02:00
parent eda2794373
commit a9d54b7d02
28 changed files with 5 additions and 5 deletions

View File

@ -416,7 +416,7 @@ function SPAWN:ReSpawn( SpawnIndex )
-- TODO: This logic makes DCS crash and i don't know why (yet). -- TODO: This logic makes DCS crash and i don't know why (yet).
local SpawnGroup = self:GetGroupFromIndex( SpawnIndex ) local SpawnGroup = self:GetGroupFromIndex( SpawnIndex )
if SpawnGroup then if SpawnGroup then
local SpawnDCSGroup = SpawnGroup:GetDCSGroup() local SpawnDCSGroup = SpawnGroup:GetDCSObject()
if SpawnDCSGroup then if SpawnDCSGroup then
SpawnGroup:Destroy() SpawnGroup:Destroy()
end end

View File

@ -1,5 +1,5 @@
env.info( '*** MOOSE STATIC INCLUDE START *** ' ) env.info( '*** MOOSE STATIC INCLUDE START *** ' )
env.info( 'Moose Generation Timestamp: 20160703_0754' ) env.info( 'Moose Generation Timestamp: 20160704_1648' )
local base = _G local base = _G
Include = {} Include = {}
@ -18236,7 +18236,7 @@ function SPAWN:ReSpawn( SpawnIndex )
-- TODO: This logic makes DCS crash and i don't know why (yet). -- TODO: This logic makes DCS crash and i don't know why (yet).
local SpawnGroup = self:GetGroupFromIndex( SpawnIndex ) local SpawnGroup = self:GetGroupFromIndex( SpawnIndex )
if SpawnGroup then if SpawnGroup then
local SpawnDCSGroup = SpawnGroup:GetDCSGroup() local SpawnDCSGroup = SpawnGroup:GetDCSObject()
if SpawnDCSGroup then if SpawnDCSGroup then
SpawnGroup:Destroy() SpawnGroup:Destroy()
end end

View File

@ -1,5 +1,5 @@
env.info( '*** MOOSE STATIC INCLUDE START *** ' ) env.info( '*** MOOSE STATIC INCLUDE START *** ' )
env.info( 'Moose Generation Timestamp: 20160703_0754' ) env.info( 'Moose Generation Timestamp: 20160704_1648' )
local base = _G local base = _G
Include = {} Include = {}
@ -18236,7 +18236,7 @@ function SPAWN:ReSpawn( SpawnIndex )
-- TODO: This logic makes DCS crash and i don't know why (yet). -- TODO: This logic makes DCS crash and i don't know why (yet).
local SpawnGroup = self:GetGroupFromIndex( SpawnIndex ) local SpawnGroup = self:GetGroupFromIndex( SpawnIndex )
if SpawnGroup then if SpawnGroup then
local SpawnDCSGroup = SpawnGroup:GetDCSGroup() local SpawnDCSGroup = SpawnGroup:GetDCSObject()
if SpawnDCSGroup then if SpawnDCSGroup then
SpawnGroup:Destroy() SpawnGroup:Destroy()
end end