mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-14 11:15:24 -05:00
fix: fix crash in LatencyState when exiting / cleaning up state data
This commit is contained in:
parent
b0b73c8399
commit
39b1a42cfe
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue