mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-11 06:05:04 -05:00
Fix type comparison
works fine without this, but this is the correct type comparison
This commit is contained in:
parent
32d8225023
commit
cf12f7f4bc
|
|
@ -29,7 +29,7 @@ private bool Equals(SlotViewInfo<T> other)
|
|||
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 New Issue
Block a user