Scriptcounter touchup: Fix end when deleting inventory

This commit is contained in:
Inusaito Sayori
2013-07-30 11:26:58 -04:00
parent e427e1b93f
commit 545d104212

View File

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