From 545d10421296bd90550e6e2a37d0922f3f56b01d Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Tue, 30 Jul 2013 11:26:58 -0400 Subject: [PATCH] Scriptcounter touchup: Fix end when deleting inventory --- indra/newview/scriptcounter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/newview/scriptcounter.cpp b/indra/newview/scriptcounter.cpp index 45b043b2d..3d9ea682f 100644 --- a/indra/newview/scriptcounter.cpp +++ b/indra/newview/scriptcounter.cpp @@ -149,6 +149,7 @@ void ScriptCounter::inventoryChanged(LLViewerObject* obj, LLInventoryObject::obj //llinfos << "Deleting script " << id << " in " << objid << llendl; obj->removeInventory(id); --i; // Avoid iteration when removing, everything has shifted + end = inv->end(); } } }