diff options
author | Dave Parks <davep@lindenlab.com> | 2010-11-19 18:49:35 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-11-19 18:49:35 -0600 |
commit | 585ddf18fc399478e399595daf65e1527213909b (patch) | |
tree | 490ac2357608c4388ebbc29dfc829028628e8578 /indra | |
parent | 0bb387a03001d42842f8bf18c1d4c5d2b73e47c2 (diff) |
SH-525 fix for crash when specifying LOD slots out of order.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index ddc8774ea9..49177e6308 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -2994,7 +2994,7 @@ void LLModelPreview::updateStatusMessages() { for (U32 i = 0; i < verts[lod].size(); ++i) { - S32 max_verts = verts[lod+1][i]; + S32 max_verts = i < verts[lod+1].size() ? verts[lod+1][i] : 0; if (verts[lod][i] > max_verts) { //too many vertices in this lod |