From a2c7a13065f467a2fef6d64ab7bf123e2ab4c07c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 12 May 2020 20:42:31 +0100 Subject: [PATCH] silly bug --- OpenSim/Region/Framework/Scenes/UuidGatherer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs index 732c57e013..eb31d552aa 100644 --- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs +++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs @@ -342,7 +342,7 @@ namespace OpenSim.Region.Framework.Scenes return; SceneObjectPart[] parts = sceneObject.Parts; - for (int i = 0; i < parts.Length; i++) + for (int i = 0; i < parts.Length; ++i) { SceneObjectPart part = parts[i]; @@ -399,10 +399,10 @@ namespace OpenSim.Region.Framework.Scenes List items = part.TaskInventory.GetItems(); // Now analyze this prim's inventory items to preserve all the uuids that they reference - for(i = 0; i < items.Count; ++i) + for(int j = 0; j < items.Count; ++j) { - TaskInventoryItem tii = items[i]; - items[i] = null; // gc is stupid + TaskInventoryItem tii = items[j]; + items[j] = null; // gc is stupid AddForInspection(tii.AssetID, (sbyte)tii.Type); }