aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index 147d530..5b167a2 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -508,8 +508,10 @@ namespace OpenSim.Region.Framework.Scenes
508 508
509 if (m_items.ContainsKey(itemId)) 509 if (m_items.ContainsKey(itemId))
510 { 510 {
511 TaskInventoryItem it = m_items[itemId];
511 m_items.LockItemsForRead(false); 512 m_items.LockItemsForRead(false);
512 CreateScriptInstance(m_items[itemId], startParam, postOnRez, engine, stateSource); 513
514 CreateScriptInstance(it, startParam, postOnRez, engine, stateSource);
513 } 515 }
514 else 516 else
515 { 517 {