Fixing limit of cargo to 10

This commit is contained in:
FlightControl_Master 2018-03-13 14:43:05 +01:00
parent e16eb38764
commit 58b2802f3a
2 changed files with 2 additions and 2 deletions

View File

@ -1192,7 +1192,7 @@ do -- DETECTION_BASE
-- @return #map<#string,Wrapper.Unit#UNIT> The map of Friendly UNITs. -- @return #map<#string,Wrapper.Unit#UNIT> The map of Friendly UNITs.
function DETECTION_BASE:GetFriendliesNearBy( DetectedItem, Category ) function DETECTION_BASE:GetFriendliesNearBy( DetectedItem, Category )
return DetectedItem.FriendliesNearBy[Category] return DetectedItem.FriendliesNearBy and DetectedItem.FriendliesNearBy[Category]
end end
--- Returns if there are friendlies nearby the intercept ... --- Returns if there are friendlies nearby the intercept ...

View File

@ -162,7 +162,7 @@ do -- TASK_CARGO
self.SmokeColor = SMOKECOLOR.Red self.SmokeColor = SMOKECOLOR.Red
self.CargoItemCount = {} -- Map of Carriers having a cargo item count to check the cargo loading limits. self.CargoItemCount = {} -- Map of Carriers having a cargo item count to check the cargo loading limits.
self.CargoLimit = 6 self.CargoLimit = 10
self.DeployZones = {} -- setmetatable( {}, { __mode = "v" } ) -- weak table on value self.DeployZones = {} -- setmetatable( {}, { __mode = "v" } ) -- weak table on value