crash on story menu

This commit is contained in:
Brandon
2020-11-07 00:05:58 -05:00
parent 673ed0d7fd
commit 602cf4c574
6 changed files with 14 additions and 7 deletions

View File

@ -184,7 +184,9 @@ class FreeplayState extends MusicBeatState
function changeSelection(change:Int = 0)
{
#if !switch
NGio.logEvent('Fresh');
#end
curSelected += change;

View File

@ -30,6 +30,9 @@ import flixel.util.FlxTimer;
import haxe.Json;
import lime.utils.Assets;
//New Audio BS
//import faxe.Faxe;
using StringTools;
class PlayState extends MusicBeatState
@ -841,9 +844,7 @@ class PlayState extends MusicBeatState
function endSong():Void
{
#if !switch
Highscore.saveScore(SONG.song, songScore, storyDifficulty);
#end
if (isStoryMode)
{
@ -861,9 +862,10 @@ class PlayState extends MusicBeatState
#if !switch
NGio.unlockMedal(60961);
Highscore.saveWeekScore(storyWeek, campaignScore, storyDifficulty);
#end
Highscore.saveWeekScore(storyWeek, campaignScore, storyDifficulty);
FlxG.save.data.weekUnlocked = StoryMenuState.weekUnlocked;
FlxG.save.flush();
}