aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorMelanie Thielker2008-12-05 07:53:12 +0000
committerMelanie Thielker2008-12-05 07:53:12 +0000
commit826450eabe16b18487391e480de4fc90639aaf52 (patch)
tree81c716c89af18022533bd282bf78e9e6e080273a /OpenSim/Region/Environment
parentAnd fix it right (diff)
downloadopensim-SC_OLD-826450eabe16b18487391e480de4fc90639aaf52.zip
opensim-SC_OLD-826450eabe16b18487391e480de4fc90639aaf52.tar.gz
opensim-SC_OLD-826450eabe16b18487391e480de4fc90639aaf52.tar.bz2
opensim-SC_OLD-826450eabe16b18487391e480de4fc90639aaf52.tar.xz
Actually remove the script when it's task inventory item is deleted, rather
than just stopping it.
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs
index 0b0c5a4..545d603 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs
@@ -527,7 +527,7 @@ namespace OpenSim.Region.Environment.Scenes
527 int type = m_items[itemID].InvType; 527 int type = m_items[itemID].InvType;
528 if (type == 10) // Script 528 if (type == 10) // Script
529 { 529 {
530 m_part.ParentGroup.Scene.EventManager.TriggerStopScript(m_part.LocalId, itemID); 530 m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemID);
531 } 531 }
532 m_items.Remove(itemID); 532 m_items.Remove(itemID);
533 m_inventorySerial++; 533 m_inventorySerial++;