From 828a3bb7f888e089f1704c15ef3de67cba551b59 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 26 Feb 2020 03:26:44 +0000 Subject: [PATCH] yeack, scripts can set targets, not having the events --- OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index b854861777..15ac88f575 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs @@ -1085,8 +1085,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance State = "default"; - part.SetScriptEvents(ItemID, - (int)m_Script.GetStateEventFlags(State)); + part.SetScriptEvents(ItemID, m_Script.GetStateEventFlags(State)); if (running) Start();