Merge pull request #434 from s4Ys369/patch-1

Bugfix: Discord Integration crashes
This commit is contained in:
fgsfds 2020-10-04 02:20:20 +03:00 committed by GitHub
commit 9d0c4dd94a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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