From eb085fe29dc486cd32798683f66ce1b6b20a2160 Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 4 Dec 2014 22:31:42 +0000 Subject: [PATCH] fix logic error in Remove call on InputCallbackSystem --- .../Base Implementations/InputCallbackSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Common/Base Implementations/InputCallbackSystem.cs b/BizHawk.Emulation.Common/Base Implementations/InputCallbackSystem.cs index 674660f633..e77b687c07 100644 --- a/BizHawk.Emulation.Common/Base Implementations/InputCallbackSystem.cs +++ b/BizHawk.Emulation.Common/Base Implementations/InputCallbackSystem.cs @@ -40,10 +40,12 @@ namespace BizHawk.Emulation.Common public new bool Remove(Action item) { var hadAny = this.Any(); - return base.Remove(item); + var result = base.Remove(item); var hasAny = this.Any(); Changes(hadAny, hasAny); + + return result; } // TODO: these just happen to be all the add/remove methods the client uses, to be thorough the others should be overriden as well