aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs6
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs10
2 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
index 3f6f5cc..cb4ca39 100644
--- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
@@ -106,7 +106,11 @@ namespace OpenSim.Region.ScriptEngine.Common
106 get { return m_LSL_Functions.State; } 106 get { return m_LSL_Functions.State; }
107 set { m_LSL_Functions.State = value; } 107 set { m_LSL_Functions.State = value; }
108 } 108 }
109 109 public void state(string state)
110 {
111 State = state;
112
113 }
110 114
111 115
112 public void Start(BuilIn_Commands LSL_Functions) 116 public void Start(BuilIn_Commands LSL_Functions)
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index a2bc397..1a7d044 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -79,7 +79,15 @@ namespace OpenSim.Region.ScriptEngine.Common
79 if (m_state != value) 79 if (m_state != value)
80 { 80 {
81 m_state = value; 81 m_state = value;
82 m_ScriptEngine.m_EventManager.state_entry(m_localID); 82 try
83 {
84 m_ScriptEngine.m_EventManager.state_entry(m_localID);
85
86 }
87 catch (AppDomainUnloadedException)
88 {
89 System.Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance");
90 }
83 } 91 }
84 } 92 }
85 } 93 }