Skip to content

Commit bad7ed8

Browse files
band-aid fix
should close #1084 hopefully
1 parent cbf82b4 commit bad7ed8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/GameOverSubstate.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ class GameOverSubstate extends MusicBeatSubstate
230230
overlay.offset.set(overlayConfirmOffsets.x, overlayConfirmOffsets.y);
231231
}
232232
FlxG.sound.music.stop();
233-
FlxG.sound.play(Paths.music(endSoundName));
233+
try {FlxG.sound.play(Paths.music(endSoundName));}
234+
catch(e) {trace('Failed to play the end track!');}
235+
234236
new FlxTimer().start(0.7, function(tmr:FlxTimer)
235237
{
236238
FlxG.camera.fade(FlxColor.BLACK, 2, false, function()

0 commit comments

Comments
 (0)