From b84cae9ff5eea459dca9f81b1cdba0697223d7af Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 20 Jan 2020 22:04:52 -0800 Subject: [PATCH] Fix box name write for sav8swsh only used via the view-all-boxes popup when switching boxes ty anubis! --- PKHeX.Core/Saves/Substructures/Gen8/BoxLayout8.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/Saves/Substructures/Gen8/BoxLayout8.cs b/PKHeX.Core/Saves/Substructures/Gen8/BoxLayout8.cs index d238e94be..dc143ebb0 100644 --- a/PKHeX.Core/Saves/Substructures/Gen8/BoxLayout8.cs +++ b/PKHeX.Core/Saves/Substructures/Gen8/BoxLayout8.cs @@ -8,7 +8,7 @@ public sealed class BoxLayout8 : SaveBlock public BoxLayout8(SAV8SWSH sav, SCBlock block) : base(sav, block.Data) { } - private int GetBoxNameOffset(int box) => SAV6.LongStringLength * box; + private static int GetBoxNameOffset(int box) => SAV6.LongStringLength * box; public string GetBoxName(int box) { @@ -18,7 +18,7 @@ public string GetBoxName(int box) public void SetBoxName(int box, string value) { var data = SAV.SetString(value, strlen, strlen, 0); - var offset = GetBoxNameOffset(box) + (SAV6.LongStringLength * box); + var offset = GetBoxNameOffset(box); SAV.SetData(Data, data, offset); }