diff --git a/PKHeX.Core/Saves/SAV4.cs b/PKHeX.Core/Saves/SAV4.cs index caab029fa..47fd480e5 100644 --- a/PKHeX.Core/Saves/SAV4.cs +++ b/PKHeX.Core/Saves/SAV4.cs @@ -165,7 +165,9 @@ private static int GetActiveBlock(byte[] data, int begin, int length) private static int GetActiveBlockViaCounter(byte[] data, int begin, int length) { int ofs = GetBlockSaveCounterOffset(begin, length); - bool first = BitConverter.ToUInt16(data, ofs) >= BitConverter.ToUInt16(data, ofs + PartitionSize); + var block0 = BitConverter.ToUInt16(data, ofs); + var block1 = BitConverter.ToUInt16(data, ofs + PartitionSize); + bool first = block0 >= block1; return first ? 0 : 1; }