mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-07-25 06:53:05 +00:00
Update CTLD.lua
Fixed error when using Dynamic cargo "concatenate local 'gname'" and the AddStaticCargo did not respect the template staticType.
This commit is contained in:
@@ -140,6 +140,9 @@ CTLD_CARGO = {
|
||||
self.DontShowInMenu = DontShowInMenu or false
|
||||
self.ResourceMap = nil
|
||||
self.StaticType = "container_cargo" -- "container_cargo"
|
||||
if self:IsStatic() then
|
||||
self.StaticType = self.Templates
|
||||
end
|
||||
self.StaticShape = nil
|
||||
self.TypeNames = nil
|
||||
self.StaticCategory = "Cargos"
|
||||
@@ -7760,7 +7763,7 @@ end
|
||||
for _, _cgo in pairs(loadedcargo) do
|
||||
local cargo = _cgo
|
||||
local type = cargo.CargoType
|
||||
local gname = cargo.Name
|
||||
local gname = cargo:GetName()
|
||||
local gcargo = self:_FindCratesCargoObject(gname) or self:_FindTroopsCargoObject(gname)
|
||||
self:T("Looking at " .. gname .. " in the helo - type = "..tostring(type))
|
||||
if (type == CTLD_CARGO.Enum.TROOPS or type == CTLD_CARGO.Enum.ENGINEERS or type == CTLD_CARGO.Enum.VEHICLE or type == CTLD_CARGO.Enum.FOB) then
|
||||
|
||||
Reference in New Issue
Block a user