diff --git a/source/funkin/ui/debug/latency/LatencyState.hx b/source/funkin/ui/debug/latency/LatencyState.hx index 63595655cd5..b980d3e821f 100644 --- a/source/funkin/ui/debug/latency/LatencyState.hx +++ b/source/funkin/ui/debug/latency/LatencyState.hx @@ -199,7 +199,11 @@ class LatencyState extends MusicBeatSubState PreciseInputManager.instance.onInputPressed.remove(preciseInputPressed); PreciseInputManager.instance.onInputReleased.remove(preciseInputReleased); - FlxG.sound.music.volume = previousVolume; + if (FlxG.sound.music != null) + { + FlxG.sound.music.volume = previousVolume; + } + swagSong.stop(); FlxG.sound.list.remove(swagSong);