mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
Fix type comparison
works fine without this, but this is the correct type comparison
This commit is contained in:
parent
32d8225023
commit
cf12f7f4bc
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ namespace PKHeX.Core
|
|||
return false;
|
||||
if (other.Slot.Slot != Slot.Slot)
|
||||
return false;
|
||||
return other.GetType() == GetType();
|
||||
return other.Slot.GetType() == Slot.GetType();
|
||||
}
|
||||
|
||||
public override bool Equals(object obj) => ReferenceEquals(this, obj) || (obj is SlotViewInfo<T> other && Equals(other));
|
||||
|
|
Loading…
Reference in a new issue