From 1d1d6cbfc18544bcabad618b1836e8592729c2f4 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Tue, 5 Feb 2013 19:51:04 +0800 Subject: [PATCH] fix statemanater --- src/util/StateManager.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/StateManager.h b/src/util/StateManager.h index afc62b1..0d2db20 100644 --- a/src/util/StateManager.h +++ b/src/util/StateManager.h @@ -48,7 +48,8 @@ public: bool install(double new_value) { if(equal(new_value, value)) return false; - return _install(new_value); + _install(new_value); + return true; } long long get_id (void) const { return id; } @@ -66,6 +67,7 @@ public: protected: // this version of install does not check if value has been updated + // return if a new entry has been created bool _install(double new_value) { value = new_value;