From f58fcdd49234d94edaa70d4d3a945f1159a197de Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 13 Jan 2007 18:35:22 +0000 Subject: [PATCH] make sure the property doesn't only exist, but is actually initialized --- Nasal/fuel.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/fuel.nas b/Nasal/fuel.nas index 0fea72c3c..1f961c9b6 100644 --- a/Nasal/fuel.nas +++ b/Nasal/fuel.nas @@ -118,7 +118,7 @@ initialize = func { initDoubleProp = func { node = arg[0]; prop = arg[1]; val = arg[2]; - if(node.getNode(prop) != nil) { + if(node.getNode(prop) != nil and node.getType() != "NONE") { val = num(node.getNode(prop).getValue()); } node.getNode(prop, 1).setDoubleValue(val);