From: ThorstenB Date: Tue, 14 Jun 2011 19:49:42 +0000 (+0200) Subject: Melchior FRANZ: fix SGPropertyNode::LAST_USED_ATTRIBUTE X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=708ae35068499af33329f9db91f55441f4956acb;p=simgear.git Melchior FRANZ: fix SGPropertyNode::LAST_USED_ATTRIBUTE fixes commit c782a32076016f2c3c01b4fd437b024dc77806e9, (also see 38494a48d83f194e151d2fea2726e60725478c12 :) ) --- diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index 12a8fe83..499d417f 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -642,7 +642,7 @@ SGPropertyNode::trace_read () const * Last used attribute * Update as needed when enum Attribute is changed */ -const int SGPropertyNode::LAST_USED_ATTRIBUTE = USERARCHIVE; +const int SGPropertyNode::LAST_USED_ATTRIBUTE = PRESERVE; /** * Default constructor: always creates a root node. diff --git a/simgear/props/props.hxx b/simgear/props/props.hxx index 60da557d..8cf38e6d 100644 --- a/simgear/props/props.hxx +++ b/simgear/props/props.hxx @@ -762,6 +762,8 @@ public: TRACE_WRITE = 32, USERARCHIVE = 64, PRESERVE = 128 + // beware: if you add another attribute here, + // also update value of "LAST_USED_ATTRIBUTE". };