diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 15b5230..e6e414f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -214,8 +214,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
214 | { | 214 | { |
215 | // Needs to determine which engine was running it and use that | 215 | // Needs to determine which engine was running it and use that |
216 | // | 216 | // |
217 | part.Inventory.CreateScriptInstance(item.ItemID, 0, false, DefaultScriptEngine, 0); | 217 | errors = part.Inventory.CreateScriptInstanceEr(item.ItemID, 0, false, DefaultScriptEngine, 0); |
218 | errors = part.Inventory.GetScriptErrors(item.ItemID); | ||
219 | } | 218 | } |
220 | else | 219 | else |
221 | { | 220 | { |
@@ -815,8 +814,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
815 | public void RemoveTaskInventory(IClientAPI remoteClient, UUID itemID, uint localID) | 814 | public void RemoveTaskInventory(IClientAPI remoteClient, UUID itemID, uint localID) |
816 | { | 815 | { |
817 | SceneObjectPart part = GetSceneObjectPart(localID); | 816 | SceneObjectPart part = GetSceneObjectPart(localID); |
818 | SceneObjectGroup group = part.ParentGroup; | 817 | SceneObjectGroup group = null; |
819 | if (group != null) | 818 | if (part != null) |
819 | { | ||
820 | group = part.ParentGroup; | ||
821 | } | ||
822 | if (part != null && group != null) | ||
820 | { | 823 | { |
821 | TaskInventoryItem item = group.GetInventoryItem(localID, itemID); | 824 | TaskInventoryItem item = group.GetInventoryItem(localID, itemID); |
822 | if (item == null) | 825 | if (item == null) |