From cf12f7f4bcd653013661611bcdac40dcc9fafdaa Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 24 Nov 2019 06:43:42 -0800 Subject: [PATCH] Fix type comparison works fine without this, but this is the correct type comparison --- PKHeX.Core/Editing/Saves/Slots/SlotViewInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Editing/Saves/Slots/SlotViewInfo.cs b/PKHeX.Core/Editing/Saves/Slots/SlotViewInfo.cs index 635c9cc4b..f1a5e419b 100644 --- a/PKHeX.Core/Editing/Saves/Slots/SlotViewInfo.cs +++ b/PKHeX.Core/Editing/Saves/Slots/SlotViewInfo.cs @@ -29,7 +29,7 @@ private bool Equals(SlotViewInfo 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 other && Equals(other));