mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-22 06:45:20 +00:00
#WAREHOUSE - Nil fix
This commit is contained in:
@@ -4112,8 +4112,8 @@ function WAREHOUSE:_RegisterAsset(group, ngroups, forceattribute, forcecargobay,
|
|||||||
|
|
||||||
-- Get name of template group.
|
-- Get name of template group.
|
||||||
local templategroupname=group:GetName()
|
local templategroupname=group:GetName()
|
||||||
|
local unit = group:GetUnit(1)
|
||||||
local Descriptors=group:GetUnit(1):GetDesc()
|
local Descriptors= (unit and unit:IsAlive()) and unit:GetDesc() or {}
|
||||||
local Category=group:GetCategory()
|
local Category=group:GetCategory()
|
||||||
local TypeName=group:GetTypeName()
|
local TypeName=group:GetTypeName()
|
||||||
local SpeedMax=group:GetSpeedMax()
|
local SpeedMax=group:GetSpeedMax()
|
||||||
@@ -6132,6 +6132,7 @@ function WAREHOUSE:_SpawnAssetAircraft(alias, asset, request, parking, uncontrol
|
|||||||
unit.onboard_num=asset.modex[i]
|
unit.onboard_num=asset.modex[i]
|
||||||
end
|
end
|
||||||
if asset.callsign then
|
if asset.callsign then
|
||||||
|
--UTILS.PrintTableToLog(asset.callsign)
|
||||||
unit.callsign=asset.callsign[i]
|
unit.callsign=asset.callsign[i]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user