Skip to content

Commit

Permalink
fix crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeDaleHim committed Dec 4, 2023
1 parent ea7dc70 commit 8c9ad6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions source/backend/LoadingManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ class LoadingManager extends MusicBeatState
{
var stageName:String = 'stage';

trace(Song.currentSong.song.toLowerCase().replace(' ', '-'));

if (Song.currentSong != null)
{
stageName = switch (Song.currentSong.song.toLowerCase().replace(' ', '-'))
Expand All @@ -210,6 +212,8 @@ class LoadingManager extends MusicBeatState
'dark-school';
case 'ugh' | 'guns' | 'stress':
'warzone';
case 'lo-fight':
'backalley';
default:
'stage-error';
};
Expand Down
2 changes: 1 addition & 1 deletion source/states/menus/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class FreeplayState extends MusicBeatState

FlxG.sound.music.fadeOut(0.5, 0.0);

Song.loadSong(songs[curSelected].name.formatToReadable(), availableDifficulties[curDifficulty]);
Song.loadSong(songs[curSelected].name.formatToReadable(), 'hard');

LoadingManager.startGame();
}
Expand Down

0 comments on commit 8c9ad6d

Please sign in to comment.