mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-03 20:23:46 +00:00
Fix two crashes thanks to a crash report
This commit is contained in:
parent
109a3f50fb
commit
079b1f327a
|
@ -1010,7 +1010,8 @@ class PlayState extends MusicBeatSubState
|
|||
if (health <= Constants.HEALTH_MIN && !isPracticeMode && !isPlayerDying)
|
||||
{
|
||||
vocals.pause();
|
||||
FlxG.sound.music.pause();
|
||||
|
||||
if (FlxG.sound.music != null) FlxG.sound.music.pause();
|
||||
|
||||
deathCounter += 1;
|
||||
|
||||
|
@ -3115,8 +3116,8 @@ class PlayState extends MusicBeatSubState
|
|||
*/
|
||||
public function pauseMusic():Void
|
||||
{
|
||||
FlxG.sound.music.pause();
|
||||
vocals.pause();
|
||||
if (FlxG.sound.music != null) FlxG.sound.music.pause();
|
||||
if (vocals != null) vocals.pause();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue