diff options
author | Melanie | 2010-09-30 02:46:47 +0200 |
---|---|---|
committer | Melanie | 2010-09-30 02:46:47 +0200 |
commit | 9522881404e9496cb68d97fae537d60bbfa5233b (patch) | |
tree | e8875d15ca5941b0098ea8efa823822f12cdbea1 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |
parent | Lock the iteration over the inventory items when saving script states (diff) | |
download | opensim-SC-9522881404e9496cb68d97fae537d60bbfa5233b.zip opensim-SC-9522881404e9496cb68d97fae537d60bbfa5233b.tar.gz opensim-SC-9522881404e9496cb68d97fae537d60bbfa5233b.tar.bz2 opensim-SC-9522881404e9496cb68d97fae537d60bbfa5233b.tar.xz |
Fix a potential key collision
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index a9502ed..a00a7c4 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1035,7 +1035,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1035 | { | 1035 | { |
1036 | Dictionary<UUID, string> pstates = parts[i].Inventory.GetScriptStates(oldIDs); | 1036 | Dictionary<UUID, string> pstates = parts[i].Inventory.GetScriptStates(oldIDs); |
1037 | foreach (KeyValuePair<UUID, string> kvp in pstates) | 1037 | foreach (KeyValuePair<UUID, string> kvp in pstates) |
1038 | states.Add(kvp.Key, kvp.Value); | 1038 | states[kvp.Key] = kvp.Value; |
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | if (states.Count > 0) | 1041 | if (states.Count > 0) |