Problem: When a key binding includes the script: aircraft.livery.previous() then the following error occurs when attempting to wrap around (below zero):
Nasal runtime error: non-scalar in numeric context at /usr/local/FlightGear/data/Nasal/aircraft.nas, line 601 called from: /usr/local/FlightGear/data/Nasal/aircraft.nas, line 617 called from: /input/keyboard/key[89]/binding, line 1 Here is the diff for a patch: .../Nasal> diff /usr/src/CVS/data/Nasal/aircraft.nas aircraft.nas 601c601 < i = size(me.data - 1); --- > i = size(me.data) - 1; Stewart ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel