mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fix "local" error
This commit is contained in:
parent
ff8766669c
commit
db516a2077
@ -1177,9 +1177,10 @@ function AIRBASE:FindFreeParkingSpotForAircraft(group, terminaltype, scanradius,
|
|||||||
parkingdata=parkingdata or self:GetParkingSpotsTable(terminaltype)
|
parkingdata=parkingdata or self:GetParkingSpotsTable(terminaltype)
|
||||||
|
|
||||||
-- Get the aircraft size, i.e. it's longest side of x,z.
|
-- Get the aircraft size, i.e. it's longest side of x,z.
|
||||||
|
local aircraft = nil
|
||||||
local _aircraftsize, ax,ay,az
|
local _aircraftsize, ax,ay,az
|
||||||
if group and group.ClassName == "GROUP" then
|
if group and group.ClassName == "GROUP" then
|
||||||
local aircraft=group:GetUnit(1)
|
aircraft=group:GetUnit(1)
|
||||||
_aircraftsize, ax,ay,az=aircraft:GetObjectSize()
|
_aircraftsize, ax,ay,az=aircraft:GetObjectSize()
|
||||||
else
|
else
|
||||||
-- SU27 dimensions
|
-- SU27 dimensions
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user