From: mfranz Date: Thu, 10 Jul 2008 10:58:06 +0000 (+0000) Subject: let n.getAttribute("last") return SGPropertyNode::LAST_USED_ATTRIBUTE X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f08d1bf5b4c477bbeb6dd9faefc8b79858dfe499;p=flightgear.git let n.getAttribute("last") return SGPropertyNode::LAST_USED_ATTRIBUTE (this is the same constant value for all properties) --- diff --git a/src/Scripting/nasal-props.cxx b/src/Scripting/nasal-props.cxx index 6e6190047..3133d32ac 100644 --- a/src/Scripting/nasal-props.cxx +++ b/src/Scripting/nasal-props.cxx @@ -87,6 +87,7 @@ static naRef f_getAttribute(naContext c, naRef me, int argc, naRef* args) else if(!strcmp(a, "references")) return naNum(node->getNumRefs()); else if(!strcmp(a, "tied")) return naNum((*node)->isTied()); else if(!strcmp(a, "alias")) return naNum((*node)->isAlias()); + else if(!strcmp(a, "last")) return naNum(SGPropertyNode::LAST_USED_ATTRIBUTE); else if(!strcmp(a, "readable")) attr = SGPropertyNode::READ; else if(!strcmp(a, "writable")) attr = SGPropertyNode::WRITE; else if(!strcmp(a, "archive")) attr = SGPropertyNode::ARCHIVE;