aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2014-09-21 22:46:44 +0100
committerUbitUmarov2014-09-21 22:46:44 +0100
commitadda696cd09426c4d59c2850cd6ae3bab52fbf6d (patch)
tree09c17337a5111807ccc879d9c6256a358b043e78 /OpenSim
parent remove redundant code (diff)
downloadopensim-SC_OLD-adda696cd09426c4d59c2850cd6ae3bab52fbf6d.zip
opensim-SC_OLD-adda696cd09426c4d59c2850cd6ae3bab52fbf6d.tar.gz
opensim-SC_OLD-adda696cd09426c4d59c2850cd6ae3bab52fbf6d.tar.bz2
opensim-SC_OLD-adda696cd09426c4d59c2850cd6ae3bab52fbf6d.tar.xz
protect getting the item
Diffstat (limited to 'OpenSim')
-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 {