mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 06:06:55 -05:00
Fix type comparison
works fine without this, but this is the correct type comparison
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user