diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs index 577a03dcbb..df5092a792 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs @@ -891,7 +891,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine m_EventCounts[i] = 0; foreach (EventParams evt in m_EventQueue) { - ScriptEventCode eventCode = (ScriptEventCode)Enum.Parse(typeof(ScriptEventCode), + ScriptEventCode evtCode = (ScriptEventCode)Enum.Parse(typeof(ScriptEventCode), evt.EventName); m_EventCounts[(int)eventCode]++; }