mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
ops
This commit is contained in:
@@ -5798,12 +5798,19 @@ function WAREHOUSE:_SpawnAssetPrepareTemplate(asset, alias)
|
||||
template.route = {}
|
||||
template.route.routeRelativeTOT=true
|
||||
template.route.points = {}
|
||||
|
||||
local N=asset.grouping or #template.units
|
||||
|
||||
-- Handle units.
|
||||
for i=1,#template.units do
|
||||
for i=1,N do
|
||||
|
||||
-- Unit template.
|
||||
local unit = template.units[i]
|
||||
|
||||
-- If more units are in the
|
||||
if i>#template.units then
|
||||
unit=UTILS.DeepCopy(template.units[1])
|
||||
end
|
||||
|
||||
-- Nillify the unit ID.
|
||||
unit.unitId=nil
|
||||
|
||||
Reference in New Issue
Block a user