From db5a7578c9d6e70d45387dd8899fcd6230dfed48 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Sun, 22 Jul 2012 21:44:41 +0200 Subject: [PATCH] Crash fix copy texture params --- indra/newview/llpanelface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index 271ea92c4..a427529a5 100644 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -1246,7 +1246,7 @@ void LLPanelFace::onClickPaste(void* userdata) LLPrimitive obj; obj.setNumTEs(U8(textures.size())); - for (int i = 0; i < textures.size(); i++) + for (int i = 0; i < textures.size() && i < objectp->getNumTEs(); i++) { llinfos << "Pasting params on face " << i << "." << llendl; LLSD cur_tex = objectp->getTE(i)->asLLSD();