Skip to content

Commit

Permalink
how do i still forget null checks 😭
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarcleint committed Feb 6, 2024
1 parent bb0de4e commit 79ca805
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/funkin/game/GameOverSubstate.hx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class GameOverSubstate extends MusicBeatSubstate
PlayState.instance.saveWarn(false);
else {
PlayState.resetSongInfos();
Charter.instance.__clearStatics();
if (Charter.instance != null) Charter.instance.__clearStatics();

if (FlxG.sound.music != null)
FlxG.sound.music.stop();
Expand Down
2 changes: 1 addition & 1 deletion source/funkin/menus/GitarooPause.hx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class GitarooPause extends MusicBeatState
else
{
PlayState.resetSongInfos();
Charter.instance.__clearStatics();
if (Charter.instance != null) Charter.instance.__clearStatics();

FlxG.switchState(new MainMenuState());
}
Expand Down
2 changes: 1 addition & 1 deletion source/funkin/menus/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class PauseSubState extends MusicBeatSubstate
PlayState.instance.saveWarn(false);
else {
PlayState.resetSongInfos();
Charter.instance.__clearStatics();
if (Charter.instance != null) Charter.instance.__clearStatics();

CoolUtil.playMenuSong();
FlxG.switchState(PlayState.isStoryMode ? new StoryMenuState() : new FreeplayState());
Expand Down

1 comment on commit 79ca805

@LeanDapper
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're on thin ice buddy... /joke

Please sign in to comment.