protect getting the item

avinationmerge
UbitUmarov 2014-09-21 22:46:44 +01:00
parent 51ec2d83ac
commit adda696cd0
1 changed files with 3 additions and 1 deletions

View File

@ -508,8 +508,10 @@ namespace OpenSim.Region.Framework.Scenes
if (m_items.ContainsKey(itemId)) if (m_items.ContainsKey(itemId))
{ {
TaskInventoryItem it = m_items[itemId];
m_items.LockItemsForRead(false); m_items.LockItemsForRead(false);
CreateScriptInstance(m_items[itemId], startParam, postOnRez, engine, stateSource);
CreateScriptInstance(it, startParam, postOnRez, engine, stateSource);
} }
else else
{ {