]> git.mxchange.org Git - flightgear.git/commit
A bug was discovered on IRC where an errant script was setting a nil
authorandy <andy>
Tue, 17 Oct 2006 19:58:33 +0000 (19:58 +0000)
committerandy <andy>
Tue, 17 Oct 2006 19:58:33 +0000 (19:58 +0000)
commit3362ea2447b4a73def89553337e9efe5986d01c2
tree0564500c1f4f6add4d17b118a7312b9fcc342bdc
parent4da02e3d990b741171256b3c07eb3562ad5cc4be
A bug was discovered on IRC where an errant script was setting a nil
value on a property.  This becomes a NaN when converted to a numeric
value, which then percolated into the C++ world where it ultimately
caused a crash in YASim's turbulence code.  While converting nil to
NaN isn't *strictly* wrong, it's dangerous for this reason.  Toss a
Nasal exception instead.  Hopefully this won't break too much
preexisting code.
src/Scripting/NasalSys.cxx
src/Scripting/nasal-props.cxx