From adda696cd09426c4d59c2850cd6ae3bab52fbf6d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 21 Sep 2014 22:46:44 +0100 Subject: protect getting the item --- OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region') 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 if (m_items.ContainsKey(itemId)) { + TaskInventoryItem it = m_items[itemId]; m_items.LockItemsForRead(false); - CreateScriptInstance(m_items[itemId], startParam, postOnRez, engine, stateSource); + + CreateScriptInstance(it, startParam, postOnRez, engine, stateSource); } else { -- cgit v1.1