summaryrefslogtreecommitdiff
path: root/indra/newview/llvocache.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2010-12-15 17:34:18 -0700
committerXiaohong Bao <bao@lindenlab.com>2010-12-15 17:34:18 -0700
commitac71884a446170a32ec557d5e9f85d0a73e8fa23 (patch)
tree879e420a9a546ee50bb3106577d99e3e50573c3e /indra/newview/llvocache.cpp
parent57065fe5a9521158b79b7a313d6476b8dcaa13a5 (diff)
fix for SH-446: viewer crashed after clearing cache and relogging
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rw-r--r--indra/newview/llvocache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index bbe637d161..cb48d1db73 100644
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -291,6 +291,7 @@ void LLVOCache::initCache(ELLPath location, U32 size, U32 cache_version)
{
return ;
}
+ mInitialized = TRUE ;
setDirNames(location);
if (!mReadOnly)
@@ -301,8 +302,7 @@ void LLVOCache::initCache(ELLPath location, U32 size, U32 cache_version)
MAX_NUM_OBJECT_ENTRIES, NUM_ENTRIES_TO_PURGE);
mMetaInfo.mVersion = cache_version;
- readCacheHeader();
- mInitialized = TRUE ;
+ readCacheHeader();
if(mMetaInfo.mVersion != cache_version)
{