From 5b4b9fd1690406e2e1c71d0a3caeda1e67581b42 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Mon, 22 Oct 2012 03:17:33 -0500 Subject: [PATCH] Durr, missed a line when adding attached light muting. Clobbered when diffing. Incrementing in a for loop is kinda important! Our handling in this function differes from LL in the firstplace because they are performing iteration on an iterator that can be invalid after the erase. --- indra/newview/pipeline.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 7f80764dc..035e51e64 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -1467,6 +1467,7 @@ void LLPipeline::removeMutedAVsLights(LLVOAvatar* muted_avatar) gPipeline.mLights.erase(iter->drawable); gPipeline.mNearbyLights.erase(iter++); } + else ++iter; } }