diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs index 47768b7..d0b5680 100644 --- a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs +++ b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs | |||
@@ -63,7 +63,7 @@ namespace OpenSim.Region.Environment.Interfaces | |||
63 | /// Store a prim's inventory | 63 | /// Store a prim's inventory |
64 | /// </summary> | 64 | /// </summary> |
65 | /// <returns></returns> | 65 | /// <returns></returns> |
66 | void StorePrimInventory(LLUUID primID, IDictionary<LLUUID, TaskInventoryItem> items); | 66 | void StorePrimInventory(LLUUID primID, ICollection<TaskInventoryItem> items); |
67 | 67 | ||
68 | List<SceneObjectGroup> LoadObjects(LLUUID regionUUID); | 68 | List<SceneObjectGroup> LoadObjects(LLUUID regionUUID); |
69 | 69 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index a700974..d4e2102 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -401,7 +401,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
401 | { | 401 | { |
402 | if (HasInventoryChanged) | 402 | if (HasInventoryChanged) |
403 | { | 403 | { |
404 | datastore.StorePrimInventory(UUID, TaskInventory); | 404 | lock (TaskInventory) |
405 | { | ||
406 | datastore.StorePrimInventory(UUID, TaskInventory.Values); | ||
407 | } | ||
405 | 408 | ||
406 | HasInventoryChanged = false; | 409 | HasInventoryChanged = false; |
407 | } | 410 | } |