This is an older version. I still didn't figure this out until this version.

FlightGear unterminated index fix (OLDER)

For version The error:

Nasal runtime error: unterminated index (looking for ']')
  at C:/Program Files/FlightGear, line 238
  called from: C:/Program Files/FlightGear, line 56
  called from: C:/Program Files/FlightGear, line 100

Option 1 - The Fix, "inline":

    update_nd_plan_center : func {
        # find wpt lat, lon
		var index = me.nd_plan_wpt.getValue();
		if (num(index) == nil) return; # Kwynn added this line -  This was originally line 237, error was on 238

Option 2 - replacement for systems.nas


I only see this occasionally, but I saw it immediately when I tested v0.8.0 of my script. I can't conceive of the fix doing unintended harm, but I haven't flown much since I made the change.

Other Bug Fixes

Valid XHTML 1.0 Strict