From fe78ae21a6d8ed5eb2ca30f3cab6b5dbc293786f Mon Sep 17 00:00:00 2001 From: Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> Date: Wed, 3 Jun 2026 04:12:31 +0100 Subject: [PATCH] Properly send Link to the beginning to the dungeon in boss room shuffle (#6676) --- soh/soh/Enhancements/randomizer/randomizer_entrance.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/randomizer_entrance.c b/soh/soh/Enhancements/randomizer/randomizer_entrance.c index 5b078fc534..bc21cea29e 100644 --- a/soh/soh/Enhancements/randomizer/randomizer_entrance.c +++ b/soh/soh/Enhancements/randomizer/randomizer_entrance.c @@ -143,7 +143,6 @@ void Entrance_ResetEntranceTable(void) { void Entrance_Init(void) { EntranceOverride* entranceOverrides = Randomizer_GetEntranceOverrides(); - s32 index; Entrance_CopyOriginalEntranceTable(); @@ -156,7 +155,7 @@ void Entrance_Init(void) { } // Delete the title card and add a fade in for Hyrule Field from Ocarina of Time cutscene - for (index = ENTR_HYRULE_FIELD_16; index <= ENTR_HYRULE_FIELD_16_3; ++index) { + for (s32 index = ENTR_HYRULE_FIELD_16; index <= ENTR_HYRULE_FIELD_16_3; ++index) { gEntranceTable[index].field = ENTRANCE_INFO_FIELD(false, false, TRANS_TYPE_FADE_BLACK, TRANS_TYPE_INSTANT); } @@ -199,7 +198,7 @@ void Entrance_Init(void) { bossScene = dungeons[j].bossScene; } - if (index == dungeons[j].bossDoor) { + if (originalIndex == dungeons[j].bossDoor) { saveWarpEntrance = dungeons[j].entryway; } }