From 3038746d839d7eeffcd6221ea766d33dd1378567 Mon Sep 17 00:00:00 2001 From: Kadah Date: Fri, 10 Jun 2011 11:35:12 -0700 Subject: [PATCH] Fix: Don't clear cache on LastJ2CVersion setting clear --- indra/newview/llappviewer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 0649865c3d..fe9f1f74e8 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -3479,7 +3479,8 @@ bool LLAppViewer::initCache() // If the J2C has changed since the last run, clear the cache const std::string j2c_info = LLImageJ2C::getEngineInfo(); - if (j2c_info != gSavedSettings.getString("LastJ2CVersion")) + const std::string j2c_last = gSavedSettings.getString("LastJ2CVersion"); + if (j2c_info != j2c_last && !j2c_last.empty()) { mPurgeCache = true; }