Fixed crash when pausing in unexpected courses/acts

This commit is contained in:
MysterD 2022-04-13 01:29:41 -07:00
parent 9310370d61
commit ab933f250e
1 changed files with 4 additions and 0 deletions

View File

@ -2369,6 +2369,10 @@ u8 gTextCourseArr[][7] = {
#endif
void render_pause_my_score_coins(void) {
// sanity check
if (!COURSE_IS_VALID_COURSE(gCurrCourseNum)) { return; }
if (gCurrActNum <= 0 || gCurrActNum > 6) { return; }
#ifdef VERSION_EU
u8 textMyScore[][10] = {
{ TEXT_MY_SCORE },