diff --git a/XRTK-Core/Packages/com.xrtk.core/Services/BaseEventSystem.cs b/XRTK-Core/Packages/com.xrtk.core/Services/BaseEventSystem.cs index 15a5b6ed4..b1b3acd90 100644 --- a/XRTK-Core/Packages/com.xrtk.core/Services/BaseEventSystem.cs +++ b/XRTK-Core/Packages/com.xrtk.core/Services/BaseEventSystem.cs @@ -44,7 +44,7 @@ public virtual void HandleEvent(BaseEventData eventData, ExecuteEvents.EventF { var eventListener = EventListeners[i]; Debug.Assert(eventListener != null, $"An object at index {i} has been destroyed but remains in the event handler list for {Name}.BaseEventSystem"); - ExecuteEvents.Execute(EventListeners[i], eventData, eventHandler); + ExecuteEvents.Execute(eventListener, eventData, eventHandler); } eventExecutionDepth--;