summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2019-03-19 10:57:51 -0700
committerRider Linden <rider@lindenlab.com>2019-03-19 10:57:51 -0700
commit66f07e418e5c402f6328f0701cffd1314af56ad5 (patch)
treee2bdf023c721f94b5121dbac03098ef75edb51e6
parent74200ffa0c078511377c4e667de62685750e7c34 (diff)
SL-10773: Logic was reversed. Test for mCurrentEvenriont missing
-rw-r--r--indra/newview/llpanelenvironment.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}