This commit is contained in:
Applevangelist
2023-06-26 17:29:02 +02:00
parent a2d3205701
commit c7a66e0f99
2 changed files with 19 additions and 11 deletions

View File

@@ -1504,7 +1504,9 @@ function AIRBASE:FindFreeParkingSpotForAircraft(group, terminaltype, scanradius,
local _aircraftsize, ax,ay,az
if group and group.ClassName == "GROUP" then
aircraft=group:GetUnit(1)
_aircraftsize, ax,ay,az=aircraft:GetObjectSize()
if aircraft then
_aircraftsize, ax,ay,az=aircraft:GetObjectSize()
end
else
-- SU27 dimensions
_aircraftsize = 23