From 8648cdeca510d5f419a4c526f7f5e5079a1275bf Mon Sep 17 00:00:00 2001 From: Malkierian Date: Fri, 3 Jan 2025 15:40:30 -0700 Subject: [PATCH] Fix the GBK give after completing the triforce in triforce hunt. (#4800) --- soh/soh/Enhancements/randomizer/hook_handlers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/randomizer/hook_handlers.cpp b/soh/soh/Enhancements/randomizer/hook_handlers.cpp index 5471e2af2..a2b04a835 100644 --- a/soh/soh/Enhancements/randomizer/hook_handlers.cpp +++ b/soh/soh/Enhancements/randomizer/hook_handlers.cpp @@ -7,6 +7,7 @@ #include "soh/Enhancements/randomizer/randomizerTypes.h" #include "soh/Enhancements/randomizer/dungeon.h" #include "soh/Enhancements/randomizer/fishsanity.h" +#include "soh/Enhancements/randomizer/static_data.h" #include "soh/Enhancements/randomizer/ShufflePots.h" #include "soh/Enhancements/game-interactor/GameInteractor.h" #include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h" @@ -2257,7 +2258,7 @@ void RandomizerOnPlayerUpdateHandler() { gPlayState->transitionTrigger != TRANS_TRIGGER_START && (1 << 0 & gSaveContext.inventory.dungeonItems[SCENE_GANONS_TOWER]) == 0 ) { - GiveItemEntryWithoutActor(gPlayState, ItemTableManager::Instance->RetrieveItemEntry(MOD_RANDOMIZER, RG_GANONS_CASTLE_BOSS_KEY)); + GiveItemEntryWithoutActor(gPlayState, *Rando::StaticData::GetItemTable().at(RG_GANONS_CASTLE_BOSS_KEY).GetGIEntry()); } if (