aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs
index 6ebd675..2c9fd3e 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs
@@ -525,6 +525,10 @@ namespace OpenSim.Region.Environment.Scenes
525 if (m_items.ContainsKey(itemID)) 525 if (m_items.ContainsKey(itemID))
526 { 526 {
527 int type = m_items[itemID].InvType; 527 int type = m_items[itemID].InvType;
528 if (type == 10) // Script
529 {
530 m_part.ParentGroup.Scene.TriggerStopScript(m_part.LocalId, itemID);
531 }
528 m_items.Remove(itemID); 532 m_items.Remove(itemID);
529 m_inventorySerial++; 533 m_inventorySerial++;
530 m_part.TriggerScriptChangedEvent(Changed.INVENTORY); 534 m_part.TriggerScriptChangedEvent(Changed.INVENTORY);