Dont crash if there is no setting for saving the current state of a statbar item in, just go with the defaults.

Sanity check that will make sure RelwithDebInfo wont break if/when LL 3.3.3 is merged in.
Liny 2012-06-18 18:02:19 -07:00
parent 9310e79f4c
commit 9520a82d42
1 changed files with 6 additions and 1 deletions

View File

@ -54,7 +54,12 @@ LLStatBar::LLStatBar(const Params& p)
mDisplayMean(p.show_mean),
mSetting(p.setting)
{
S32 setting = LLUI::sSettingGroups["config"]->getS32(mSetting);
//S32 setting = LLUI::sSettingGroups["config"]->getS32(mSetting); // <FS:LO> dont crash if there is no setting for saving the current state of the item in, just go with the defaults
S32 setting = -1;
if(mSetting != "")
{
setting = LLUI::sSettingGroups["config"]->getS32(mSetting);
}
switch (setting)
{
default: