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(); } } }