Andy Ross wrote:
> Jim Wilson wrote:
> > if (property) {
> > }
> >
> > Does not work if the "property" type is undefined.
>
> I'm a little confused.  Is "property" completely unset (which should
> cause a symbol lookup failure), or does if have a value of nil (which
> should have a boolean value of false)?

Never mind, I understand.  The getprop() function returns nil if the
SGPropertyNode type of the property is UNSPECIFIED.  That's definitely
a bug.  Fixed.

Andy

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to