summaryrefslogtreecommitdiff
path: root/indra/llxml/llcontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llxml/llcontrol.h')
-rw-r--r--indra/llxml/llcontrol.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llxml/llcontrol.h b/indra/llxml/llcontrol.h
index b88f388a0b..871d887136 100644
--- a/indra/llxml/llcontrol.h
+++ b/indra/llxml/llcontrol.h
@@ -48,6 +48,7 @@ protected:
BOOL mHasRange;
BOOL mPersist;
BOOL mIsDefault;
+
static std::set<LLControlBase*> mChangedControls;
static std::list<S32> mFreeIDs;//These lists are used to store the ID's of registered event listeners.
static std::list<S32> mUsedIDs;
@@ -152,7 +153,10 @@ public:
}
}
- /*virtual*/ void resetToDefault() { mCurrent = mDefault; mIsDefault = TRUE;}
+ /*virtual*/ void resetToDefault()
+ {
+ setValue(mDefault);
+ }
virtual ~LLControl()
{