mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-20 17:07:54 +00:00
Merge pull request #2606 from shaji-Dev/master-ng
[FIX] "Parameter #1 (group id) missed" refreshing menus for dead groups
This commit is contained in:
@@ -6171,11 +6171,11 @@ function CTLD:_BuildObjectFromCrates(Group,Unit,Build,Repair,RepairLocation,Mult
|
|||||||
local ctype = Build.Type -- #CTLD_CARGO.Enum
|
local ctype = Build.Type -- #CTLD_CARGO.Enum
|
||||||
local canmove = false
|
local canmove = false
|
||||||
if ctype == CTLD_CARGO.Enum.VEHICLE then canmove = true end
|
if ctype == CTLD_CARGO.Enum.VEHICLE then canmove = true end
|
||||||
if ctype == CTLD_CARGO.Enum.STATIC then
|
if ctype == CTLD_CARGO.Enum.STATIC then
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
local temptable = Build.Template or {}
|
local temptable = Build.Template or {}
|
||||||
if type(temptable) == "string" then
|
if type(temptable) == "string" then
|
||||||
temptable = {temptable}
|
temptable = {temptable}
|
||||||
end
|
end
|
||||||
local zone = nil -- Core.Zone#ZONE_RADIUS
|
local zone = nil -- Core.Zone#ZONE_RADIUS
|
||||||
@@ -6217,8 +6217,11 @@ function CTLD:_BuildObjectFromCrates(Group,Unit,Build,Repair,RepairLocation,Mult
|
|||||||
self:__CratesBuild(1,Group,Unit,self.DroppedTroops[self.TroopCounter])
|
self:__CratesBuild(1,Group,Unit,self.DroppedTroops[self.TroopCounter])
|
||||||
end
|
end
|
||||||
end -- template loop
|
end -- template loop
|
||||||
self:_RefreshLoadCratesMenu(Group, Unit)
|
|
||||||
self:_RefreshPackMenus(Group, Unit)
|
if Group and Group:IsAlive() and Group:GetID() then
|
||||||
|
self:_RefreshLoadCratesMenu(Group, Unit)
|
||||||
|
self:_RefreshPackMenus(Group, Unit)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
self:T(self.lid.."Group KIA while building!")
|
self:T(self.lid.."Group KIA while building!")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user