summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-01-19 23:14:41 -0600
committerDave Parks <davep@lindenlab.com>2011-01-19 23:14:41 -0600
commitf3493d41655e357374e6a7122e19d463100bb27c (patch)
tree79a403d911fb4a91f08520570b02614f7eea29a8 /indra/llmath
parentebbaa00ed935a76c874cd08b9b35a8911287d080 (diff)
SH-822 Fix for crash in cacheOptimize (U16 should have been a U32)
Diffstat (limited to 'indra/llmath')
-rw-r--r--indra/llmath/llvolume.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index f41cd1b4e8..d6dfb5c7a9 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -5762,7 +5762,7 @@ void LLVolumeFace::cacheOptimize()
for (U32 i = 0; i < mNumIndices; i++)
{ //populate vertex data and triangle data arrays
U16 idx = mIndices[i];
- U16 tri_idx = i/3;
+ U32 tri_idx = i/3;
vertex_data[idx].mTriangles.push_back(&(triangle_data[tri_idx]));
vertex_data[idx].mIdx = idx;