fix logic error in Remove call on InputCallbackSystem
This commit is contained in:
parent
29b217b587
commit
eb085fe29d
|
@ -40,10 +40,12 @@ namespace BizHawk.Emulation.Common
|
||||||
public new bool Remove(Action item)
|
public new bool Remove(Action item)
|
||||||
{
|
{
|
||||||
var hadAny = this.Any();
|
var hadAny = this.Any();
|
||||||
return base.Remove(item);
|
var result = base.Remove(item);
|
||||||
var hasAny = this.Any();
|
var hasAny = this.Any();
|
||||||
|
|
||||||
Changes(hadAny, hasAny);
|
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
|
// TODO: these just happen to be all the add/remove methods the client uses, to be thorough the others should be overriden as well
|
||||||
|
|
Loading…
Reference in New Issue