1
0
Fork 0
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:
EliteMasterEric 2024-04-30 23:24:43 -04:00
parent 109a3f50fb
commit 079b1f327a

View file

@ -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();
}
/**