diff --git a/src/game/ingame_menu.c b/src/game/ingame_menu.c index 1b21e30e..a8a5373b 100644 --- a/src/game/ingame_menu.c +++ b/src/game/ingame_menu.c @@ -2810,13 +2810,6 @@ void render_pause_castle_main_strings(s16 x, s16 y) { INGAME_TEXT_COPY(textCoin, TEXT_COIN_X); #endif - u8 courseNum = gDialogLineNum + 1; - const u8 *courseName = ( - gDialogLineNum == COURSE_STAGES_COUNT ? - ((const u8 **) get_course_name_table())[COURSE_MAX] : // Castle secret stars - get_level_name_sm64(courseNum, get_level_num_from_course_num(courseNum), 1, 1) - ); - u8 strVal[8]; s16 starNum = gDialogLineNum; @@ -2848,6 +2841,13 @@ void render_pause_castle_main_strings(s16 x, s16 y) { gSPDisplayList(gDisplayListHead++, dl_ia_text_begin); gDPSetEnvColor(gDisplayListHead++, 255, 255, 255, gDialogTextAlpha); + u8 courseNum = gDialogLineNum + 1; + const u8 *courseName = ( + gDialogLineNum == COURSE_STAGES_COUNT ? + ((const u8 **) get_course_name_table())[COURSE_MAX] : // Castle secret stars + get_level_name_sm64(courseNum, get_level_num_from_course_num(courseNum), 1, 1) + ); + if (gDialogLineNum < COURSE_STAGES_COUNT) { render_pause_castle_course_stars(x, y, gCurrSaveFileNum - 1, gDialogLineNum); print_generic_string(x + 34, y - 5, textCoin);