From 86e0374efcfd214428329df98f82c42d2e0f2691 Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 22 Jun 2017 19:18:14 -0700 Subject: [PATCH] Update poketch dropdown/set #1263 --- PKHeX.Core/Saves/SAV4.cs | 2 +- PKHeX.WinForms/Subforms/Save Editors/Gen4/SAV_Misc4.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/Saves/SAV4.cs b/PKHeX.Core/Saves/SAV4.cs index fecc8f2cf..c60112ffd 100644 --- a/PKHeX.Core/Saves/SAV4.cs +++ b/PKHeX.Core/Saves/SAV4.cs @@ -506,7 +506,7 @@ public int Y } public override int SecondsToStart { get => BitConverter.ToInt32(Data, AdventureInfo + 0x34); set => BitConverter.GetBytes(value).CopyTo(Data, AdventureInfo + 0x34); } public override int SecondsToFame { get => BitConverter.ToInt32(Data, AdventureInfo + 0x3C); set => BitConverter.GetBytes(value).CopyTo(Data, AdventureInfo + 0x3C); } - public int CurrentPokeTchApp { get => Data[0x1162]; set => Data[0x1162] = (byte)Math.Min(25, value); /* Alarm Clock */ } + public int CurrentPokeTchApp { get => Data[0x1162]; set => Data[0x1162] = (byte)Math.Min(24, value); /* Alarm Clock */ } // Storage public override int CurrentBox diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen4/SAV_Misc4.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen4/SAV_Misc4.cs index 1d859d751..af63f9ded 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen4/SAV_Misc4.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen4/SAV_Misc4.cs @@ -186,7 +186,7 @@ private void ReadPoketch() "16 Move Tester", "17 Calendar", "18 Dot Artist", "19 Roulette", "20 Trainer Counter", "21 Kitchen Timer", "22 Color Changer", "23 Matchup Checker", "24 Stopwatch", "25 Alarm Clock" }; - CB_CurrentApp.Items.AddRange(new[] {"None"}.Concat(PoketchTitle).ToArray()); + CB_CurrentApp.Items.AddRange(PoketchTitle); CB_CurrentApp.SelectedIndex = SAV.CurrentPokeTchApp; oldPoketchVal = new bool[PoketchTitle.Length]; CLB_Poketch.Items.Clear();