Bugfix: Discord Integration crashes

Fix by PeachyPeach to stop crashes with Discord Integration when enter later Bowser courses and fights early
This commit is contained in:
s4Ys369 2020-10-03 19:10:55 -04:00 committed by fgsfds
parent 5c21494c73
commit 18dc3e268a
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ static void set_state(void) {
// when exiting a stage the act doesn't get reset
if (gCurrActNum && gCurrCourseNum) {
// any stage over 19 is a special stage without acts
if (gCurrCourseNum < 19) {
if (gCurrCourseNum <= COURSE_STAGES_MAX) {
void **actNameTbl;
#ifndef VERSION_EU
actNameTbl = segmented_to_virtual(seg2_act_name_table);