From 66f07e418e5c402f6328f0701cffd1314af56ad5 Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Tue, 19 Mar 2019 10:57:51 -0700 Subject: SL-10773: Logic was reversed. Test for mCurrentEvenriont missing --- indra/newview/llpanelenvironment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llpanelenvironment.cpp b/indra/newview/llpanelenvironment.cpp index 44806e7d23..b343c913e5 100644 --- a/indra/newview/llpanelenvironment.cpp +++ b/indra/newview/llpanelenvironment.cpp @@ -336,7 +336,7 @@ void LLPanelEnvironmentInfo::refreshFromEstate() std::string LLPanelEnvironmentInfo::getNameForTrackIndex(S32 index) { std::string invname; - if (mCurrentEnvironment || index < LLSettingsDay::TRACK_WATER || index >= LLSettingsDay::TRACK_MAX) + if (!mCurrentEnvironment || index < LLSettingsDay::TRACK_WATER || index >= LLSettingsDay::TRACK_MAX) { invname = getString(STRING_EMPTY_NAME); } -- cgit v1.2.3