From 88f9584fd96947cad044997c0b682c52ad4516d7 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Sun, 15 Oct 2023 01:06:06 -0400 Subject: [PATCH] Fix an issue where the game would crash when loading a song in Freeplay --- source/funkin/FreeplayState.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/source/funkin/FreeplayState.hx b/source/funkin/FreeplayState.hx index edf981174..a86ec0eaf 100644 --- a/source/funkin/FreeplayState.hx +++ b/source/funkin/FreeplayState.hx @@ -899,6 +899,7 @@ class FreeplayState extends MusicBeatSubState { for (song in songs) { + if (song == null) continue; if (song.songName != actualSongTho) { trace('trying to remove: ' + song.songName);