mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-16 20:01:49 -05:00
Resolve FlxG.sound.music crash
This commit is contained in:
parent
0409c0ba6a
commit
e84fdf9fac
1 changed files with 2 additions and 2 deletions
|
@ -2941,7 +2941,7 @@ class PlayState extends MusicBeatSubState
|
|||
if (overrideMusic)
|
||||
{
|
||||
// Stop the music. Do NOT destroy it, something still references it!
|
||||
FlxG.sound.music.pause();
|
||||
if (FlxG.sound.music != null) FlxG.sound.music.pause();
|
||||
if (vocals != null)
|
||||
{
|
||||
vocals.pause();
|
||||
|
@ -2951,7 +2951,7 @@ class PlayState extends MusicBeatSubState
|
|||
else
|
||||
{
|
||||
// Stop and destroy the music.
|
||||
FlxG.sound.music.pause();
|
||||
if (FlxG.sound.music != null) FlxG.sound.music.pause();
|
||||
if (vocals != null)
|
||||
{
|
||||
vocals.destroy();
|
||||
|
|
Loading…
Reference in a new issue