]> git.mxchange.org Git - flightgear.git/commit
Fix mean nasal bug when calling setprop("foo")
authorTorsten Dreyer <Torsten@t3r.de>
Mon, 13 Sep 2010 20:15:50 +0000 (22:15 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Mon, 13 Sep 2010 20:15:50 +0000 (22:15 +0200)
commita5017f218fe68fbfb05cfef9e85214b198ed8f0b
tree473bda9202842fc3f9ac21e737e7123819fdbd78
parent31a807563b244ae921e125148417f1d42c8bbde9
Fix mean nasal bug when calling setprop("foo")

Reported on the forum from Thorsten Renk and analyzed by
Hooray, fixes this issue:
var x="/test/X";
var y="/test/Y";

setprop(x,100); # sets x=100
setprop(y); # sets x=0

setprop(x,100);
setprop(200); # sets x=200

by checking for at least 2 parameters for setprop
src/Scripting/NasalSys.cxx