1
0
Fork 0

props.nas: allow "getBoolValue" to work with properties of UNSPECIFIED type.

This commit is contained in:
ThorstenB 2012-04-08 19:30:47 +02:00
parent ca3ff66e36
commit ed5692f411

View file

@ -41,7 +41,8 @@ var Node = {
getBoolValue : func {
var val = me.getValue();
if(me.getType() == "STRING" and val == "false") return 0;
var mytype = me.getType();
if((mytype == "STRING" or mytype == "UNSPECIFIED") and val == "false") return 0;
return !!val;
},