Fix type comparison

works fine without this, but this is the correct type comparison
This commit is contained in:
Kurt 2019-11-24 06:43:42 -08:00
parent 32d8225023
commit cf12f7f4bc

View file

@ -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));