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); }