FlightControl-Master / MOOSE

Mission Object Oriented Scripting Environment (MOOSE) for lua mission scripting design in DCS World
http://flightcontrol-master.github.io/MOOSE/
GNU General Public License v3.0
290 stars 96 forks source link

SCENERY:FindByZoneName(ZoneName) Crashes if Object ID is nil #1978

Closed baluballa closed 1 year ago

baluballa commented 1 year ago

In line in function SCENERY:FindByZoneName(ZoneName):

local _id=zone:GetProperty('OBJECT ID')

Next line:

BASE:T("Object ID ".._id)

breakes the function when _id is nil.

Applevangelist commented 1 year ago

Thanks - fixed in the next build

Applevangelist commented 1 year ago

1980