aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index 75e1cbb..578909c 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -870,8 +870,8 @@ namespace OpenSim.Region.Framework.Scenes
870 int type = m_items[itemID].InvType; 870 int type = m_items[itemID].InvType;
871 if (type == 10) // Script 871 if (type == 10) // Script
872 { 872 {
873 m_part.RemoveScriptEvents(itemID); 873 // route it through here, to handle script cleanup tasks
874 m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemID); 874 RemoveScriptInstance(itemID, false);
875 } 875 }
876 m_items.Remove(itemID); 876 m_items.Remove(itemID);
877 m_inventorySerial++; 877 m_inventorySerial++;