From 585ddf18fc399478e399595daf65e1527213909b Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Fri, 19 Nov 2010 18:49:35 -0600 Subject: SH-525 fix for crash when specifying LOD slots out of order. --- indra/newview/llfloatermodelpreview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra') 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 -- cgit v1.2.3