From ecc0ceee332145cfd3d60a5b26cf6d19c61df7c1 Mon Sep 17 00:00:00 2001 From: Benjamin Popp Date: Mon, 28 Oct 2019 08:33:50 -0500 Subject: [PATCH] Tutor fix tutor compatibility was finding the wrong data. --- src/HexManiac.Core/Models/HardcodeTablesModel.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/HexManiac.Core/Models/HardcodeTablesModel.cs b/src/HexManiac.Core/Models/HardcodeTablesModel.cs index 14f65428..3743668f 100644 --- a/src/HexManiac.Core/Models/HardcodeTablesModel.cs +++ b/src/HexManiac.Core/Models/HardcodeTablesModel.cs @@ -147,9 +147,7 @@ namespace HavenSoft.HexManiac.Core.Models { } format = $"[move:{EggMoveRun.MoveNamesTable}]" + (gameCode == Emerald ? 30 : 15); AddTable(source, MoveTutors, format); - var compatibilityPointer = GetNextRun(AllSourcesToSameDestination(source).Last() + 4); - while (!(compatibilityPointer is PointerRun) && compatibilityPointer.Start < Count) compatibilityPointer = GetNextRun(compatibilityPointer.Start + compatibilityPointer.Length); - source = compatibilityPointer.Start; + source += gameCode == Emerald ? 0x24 : 0x4C; format = $"[moves|b[]{MoveTutors}]{EggMoveRun.PokemonNameTable}"; AddTable(source, TutorCompatibility, format); }