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