From f3506b8afed3f9d2e13b36656698f0e8bd26d430 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Fri, 12 Apr 2024 22:07:38 -0700 Subject: [PATCH] my bad --- source/funkin/game/GameOverSubstate.hx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/funkin/game/GameOverSubstate.hx b/source/funkin/game/GameOverSubstate.hx index 4d7093c5..3e425804 100644 --- a/source/funkin/game/GameOverSubstate.hx +++ b/source/funkin/game/GameOverSubstate.hx @@ -36,12 +36,16 @@ class GameOverSubstate extends MusicBeatSubstate public var lossSFX:FlxSound; - public function new(x:Float, y:Float, character:String = Character.FALLBACK_DEAD_CHARACTER, player:Bool = true, gameOverSong:String = "gameOver", lossSFX:String = "gameOverSFX", retrySFX:String = "gameOverEnd") + public function new(x:Float, y:Float, character:String = null, player:Bool = true, gameOverSong:String = "gameOver", lossSFX:String = "gameOverSFX", retrySFX:String = "gameOverEnd") { super(); this.x = x; this.y = y; - this.characterName = character; + + characterName = character; + if (characterName == null) + characterName = Character.FALLBACK_DEAD_CHARACTER; + this.player = player; this.gameOverSong = gameOverSong; this.lossSFXName = lossSFX;