aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index 7dba7c8..3f223a3 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -553,7 +553,8 @@ namespace OpenSim.Region.Framework.Scenes
553 /// </param> 553 /// </param>
554 public void StopScriptInstance(TaskInventoryItem item) 554 public void StopScriptInstance(TaskInventoryItem item)
555 { 555 {
556 m_part.ParentGroup.Scene.EventManager.TriggerStopScript(m_part.LocalId, item.ItemID); 556 if (m_part.ParentGroup.Scene != null)
557 m_part.ParentGroup.Scene.EventManager.TriggerStopScript(m_part.LocalId, item.ItemID);
557 558
558 // At the moment, even stopped scripts are counted as active, which is probably wrong. 559 // At the moment, even stopped scripts are counted as active, which is probably wrong.
559// m_part.ParentGroup.AddActiveScriptCount(-1); 560// m_part.ParentGroup.AddActiveScriptCount(-1);