aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 24813b0..97c79b5 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -413,6 +413,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
413 413
414 public void SetState(string state) 414 public void SetState(string state)
415 { 415 {
416 if (state == State)
417 return;
418
416 PostEvent(new EventParams("state_exit", new Object[0], 419 PostEvent(new EventParams("state_exit", new Object[0],
417 new DetectParams[0])); 420 new DetectParams[0]));
418 PostEvent(new EventParams("state", new Object[] { state }, 421 PostEvent(new EventParams("state", new Object[] { state },