From 66f07e418e5c402f6328f0701cffd1314af56ad5 Mon Sep 17 00:00:00 2001
From: Rider Linden <rider@lindenlab.com>
Date: Tue, 19 Mar 2019 10:57:51 -0700
Subject: [PATCH] SL-10773: Logic was reversed.  Test for mCurrentEvenriont
 missing

---
 indra/newview/llpanelenvironment.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llpanelenvironment.cpp b/indra/newview/llpanelenvironment.cpp
index 44806e7d23b..b343c913e50 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);
     }
-- 
GitLab