mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fix for clients which weren't initialized with a cargo bay weight limit value. Each time a cargo bay weight limit is enquired through the method GetCargoBayFeeWeight(), if there isn't a cargo bay weight limit set, the default cargo bay weight limit will be calculated, so that the logic will always be executed.
This commit is contained in:
@@ -589,13 +589,6 @@ do -- TASK_CARGO
|
||||
Fsm:AddTransition( "Rejected", "Reject", "Aborted" )
|
||||
Fsm:AddTransition( "Failed", "Fail", "Failed" )
|
||||
|
||||
for _, Group in pairs( SetGroup:GetSet() ) do
|
||||
for __, Unit in pairs( Group:GetUnits() ) do
|
||||
local Unit = Unit -- Wrapper.Unit#UNIT
|
||||
Unit:SetCargoBayWeightLimit()
|
||||
end
|
||||
end
|
||||
|
||||
---- @param #FSM_PROCESS self
|
||||
-- @param Wrapper.Unit#UNIT TaskUnit
|
||||
-- @param #TASK_CARGO Task
|
||||
|
||||
Reference in New Issue
Block a user