From 47c26e634e30a3960108a925f4b62ed380002a08 Mon Sep 17 00:00:00 2001
From: Scott-GH <thatguywhowas@live.com>
Date: Tue, 29 Dec 2020 23:22:02 -0800
Subject: [PATCH] Added a fix to music restarting when the song ends.

---
 source/PlayState.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/PlayState.hx b/source/PlayState.hx
index 404a5d30c..ecc649316 100644
--- a/source/PlayState.hx
+++ b/source/PlayState.hx
@@ -1028,7 +1028,7 @@ class PlayState extends MusicBeatState
 	function endSong():Void
 	{
 		canPause = false;
-
+		FlxG.sound.music = new FlxSound();
 		if (SONG.validScore)
 		{
 			#if !switch