From 5c6621ace32ce5104fff05920fb5402240982a8a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 16 Mar 2021 18:28:38 +0100 Subject: [PATCH] use Equals for event comparison to allow easily overriding the equals method --- Coroutine/Wait.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Coroutine/Wait.cs b/Coroutine/Wait.cs index a283e35..516fadb 100644 --- a/Coroutine/Wait.cs +++ b/Coroutine/Wait.cs @@ -41,7 +41,7 @@ namespace Coroutine { } internal bool OnEvent(Event evt) { - return evt == this.evt; + return Equals(evt, this.evt); } internal bool IsWaitingForEvent() {