diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index cdd6943..7836937 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -879,12 +879,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
879 | SceneObjectGroup group = part.ParentGroup; | 879 | SceneObjectGroup group = part.ParentGroup; |
880 | if (group != null) | 880 | if (group != null) |
881 | { | 881 | { |
882 | int type = group.RemoveInventoryItem(localID, itemID); | 882 | TaskInventoryItem item = group.GetInventoryItem(localID, itemID); |
883 | part.GetProperties(remoteClient); | 883 | if (item.Type == 10) |
884 | if (type == 10) | ||
885 | { | 884 | { |
886 | EventManager.TriggerRemoveScript(localID, itemID); | 885 | EventManager.TriggerRemoveScript(localID, itemID); |
887 | } | 886 | } |
887 | group.RemoveInventoryItem(localID, itemID); | ||
888 | part.GetProperties(remoteClient); | ||
888 | } | 889 | } |
889 | else | 890 | else |
890 | { | 891 | { |