From 708ae35068499af33329f9db91f55441f4956acb Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Tue, 14 Jun 2011 21:49:42 +0200 Subject: [PATCH] Melchior FRANZ: fix SGPropertyNode::LAST_USED_ATTRIBUTE fixes commit c782a32076016f2c3c01b4fd437b024dc77806e9, (also see 38494a48d83f194e151d2fea2726e60725478c12 :) ) --- simgear/props/props.cxx | 2 +- simgear/props/props.hxx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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". }; -- 2.39.5