diff options
author | UbitUmarov | 2014-09-21 22:46:44 +0100 |
---|---|---|
committer | UbitUmarov | 2014-09-21 22:46:44 +0100 |
commit | adda696cd09426c4d59c2850cd6ae3bab52fbf6d (patch) | |
tree | 09c17337a5111807ccc879d9c6256a358b043e78 /OpenSim/Region/Framework/Scenes | |
parent | remove redundant code (diff) | |
download | opensim-SC-adda696cd09426c4d59c2850cd6ae3bab52fbf6d.zip opensim-SC-adda696cd09426c4d59c2850cd6ae3bab52fbf6d.tar.gz opensim-SC-adda696cd09426c4d59c2850cd6ae3bab52fbf6d.tar.bz2 opensim-SC-adda696cd09426c4d59c2850cd6ae3bab52fbf6d.tar.xz |
protect getting the item
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 4 |
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 | { |