fix error (getWeeks() is from patch-4)

This commit is contained in:
Lucky56
2021-06-18 21:40:50 +02:00
parent cccd2a4ddd
commit 6ebdcd4ff7
2 changed files with 24 additions and 8 deletions

View File

@ -2581,14 +2581,7 @@ class PlayState extends MusicBeatState
Highscore.saveWeekScore(storyWeek, campaignScore, storyDifficulty);
}
if(storyWeek < StoryMenuState.getWeeks().length - 1 && FlxG.save.data.weekUnlocked == storyWeek)
{
StoryMenuState.weekUnlocked.push(true);
trace('Week ' + storyWeek + ' beat (Week ' + (storyWeek + 1) + ' unlocked)');
}
FlxG.save.data.weekUnlocked = StoryMenuState.weekUnlocked.length - 1;
FlxG.save.flush();
StoryMenuState.unlockNextWeek(storyWeek);
}
else
{