issue #149 fixed - better notion of equals when comparing watch object

This commit is contained in:
adelikat 2014-04-11 17:21:45 +00:00
parent e4c7110174
commit dd651b2ca8
1 changed files with 7 additions and 2 deletions

View File

@ -261,7 +261,12 @@ namespace BizHawk.Client.Common
if (obj is Watch)
{
var watch = obj as Watch;
return this.Domain == watch.Domain && this.Address == watch.Address;
return this.Domain == watch.Domain &&
this.Address == watch.Address &&
this.Size == watch.Size &&
this.Type == watch.Type &&
this.Notes == watch.Notes;
}
if (obj is Cheat)
@ -286,7 +291,7 @@ namespace BizHawk.Client.Common
return false;
}
return a.Domain == b.Domain && a.Address == b.Address;
return a.Equals(b);
}
public static bool operator !=(Watch a, Watch b)