[FIXED] attempt to get length of local 'parking' (a nil value)

This commit is contained in:
Shafik 2025-01-29 10:05:55 +02:00
parent e30479329a
commit ea776aeacc

View File

@ -6047,7 +6047,7 @@ function WAREHOUSE:_SpawnAssetAircraft(alias, asset, request, parking, uncontrol
else else
if #parking<#template.units and not airstart then if parking and #parking<#template.units and not airstart then
local text=string.format("ERROR: Not enough parking! Free parking = %d < %d aircraft to be spawned.", #parking, #template.units) local text=string.format("ERROR: Not enough parking! Free parking = %d < %d aircraft to be spawned.", #parking, #template.units)
self:_DebugMessage(text) self:_DebugMessage(text)
return nil return nil