From 9cce65e937857bb115a20422eaf2deba2f5e64d7 Mon Sep 17 00:00:00 2001 From: Egzon Date: Tue, 21 Jan 2020 20:00:09 +0100 Subject: [PATCH] Fix Subway Super checks (#2652) Oops, it's actually a byte... --- PKHeX.Core/Saves/Substructures/Gen5/BattleSubway5.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/Saves/Substructures/Gen5/BattleSubway5.cs b/PKHeX.Core/Saves/Substructures/Gen5/BattleSubway5.cs index 472e8a69a..b6e4a5e40 100644 --- a/PKHeX.Core/Saves/Substructures/Gen5/BattleSubway5.cs +++ b/PKHeX.Core/Saves/Substructures/Gen5/BattleSubway5.cs @@ -65,8 +65,8 @@ public int MultiFriendsRecord // Super Check public int SuperCheck { - get => BitConverter.ToUInt16(Data, Offset + 0x04); - set => BitConverter.GetBytes((ushort)value).CopyTo(Data, Offset + 0x04); + get => Data[Offset + 0x04]; + set => Data[Offset + 0x04] = (byte)value; } // Super