summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <none@none>2016-07-25 23:43:37 +0300
committerandreykproductengine <none@none>2016-07-25 23:43:37 +0300
commit1b1f4252e3a243fcdc0906ada0c124dfe7b864bf (patch)
tree27b30849c3de6bc8b3f633fa1d57fb1a49f721f3 /indra
parent0db98a6308a0a70e2e2338c327468f1e717f0dec (diff)
MAINT-6460 Crash calculating mesh complexity
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llmeshrepository.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index a0e57677c3..18634de500 100644
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -3934,7 +3934,7 @@ const LLSD* LLMeshRepoThread::getMeshHeader(const LLUUID& mesh_id)
{
LLMutexLock lock(mHeaderMutex);
mesh_header_map::iterator iter = mMeshHeader.find(mesh_id);
- if (iter != mMeshHeader.end())
+ if (iter != mMeshHeader.end() && mMeshHeaderSize[mesh_id] > 0)
{
return &(iter->second);
}