mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-14 19:25:16 -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.onInputPressed.remove(preciseInputPressed);
|
||||||
PreciseInputManager.instance.onInputReleased.remove(preciseInputReleased);
|
PreciseInputManager.instance.onInputReleased.remove(preciseInputReleased);
|
||||||
|
|
||||||
FlxG.sound.music.volume = previousVolume;
|
if (FlxG.sound.music != null)
|
||||||
|
{
|
||||||
|
FlxG.sound.music.volume = previousVolume;
|
||||||
|
}
|
||||||
|
|
||||||
swagSong.stop();
|
swagSong.stop();
|
||||||
FlxG.sound.list.remove(swagSong);
|
FlxG.sound.list.remove(swagSong);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue