mirror of
https://github.com/opensim/opensim.git
synced 2026-05-20 15:25:47 +08:00
Fix state xxx within state xxx itself triggering a state "change" to
same state
This commit is contained in:
@@ -413,6 +413,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
|
||||
public void SetState(string state)
|
||||
{
|
||||
if (state == State)
|
||||
return;
|
||||
|
||||
PostEvent(new EventParams("state_exit", new Object[0],
|
||||
new DetectParams[0]));
|
||||
PostEvent(new EventParams("state", new Object[] { state },
|
||||
|
||||
Reference in New Issue
Block a user