Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
just a little tweak to use the existing local variable (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson authored Jan 21, 2020
1 parent e923000 commit bdb110a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public virtual void HandleEvent<T>(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--;
Expand Down

0 comments on commit bdb110a

Please sign in to comment.