diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index afd0a558b..472a7f5e9 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -1138,7 +1138,7 @@ class PlayState extends MusicBeatSubState if (!isMinimalMode) { if (iconP1 != null) iconP1.updatePosition(); - if (iconP1 != null) iconP2.updatePosition(); + if (iconP2 != null) iconP2.updatePosition(); } // Transition to the game over substate. @@ -2729,7 +2729,7 @@ class PlayState extends MusicBeatSubState #end // 9: Toggle the old icon. - if (FlxG.keys.justPressed.NINE) iconP1.toggleOldIcon(); + if (FlxG.keys.justPressed.NINE && iconP1 != null) iconP1.toggleOldIcon(); #if FEATURE_DEBUG_FUNCTIONS // PAGEUP: Skip forward two sections. diff --git a/source/funkin/ui/freeplay/FreeplayScore.hx b/source/funkin/ui/freeplay/FreeplayScore.hx index 8c0911a70..0725bf1fa 100644 --- a/source/funkin/ui/freeplay/FreeplayScore.hx +++ b/source/funkin/ui/freeplay/FreeplayScore.hx @@ -35,7 +35,7 @@ class FreeplayScore extends FlxTypedSpriteGroup loopNum--; } - while (loopNum > 0) + while (loopNum >= 0) { group.members[loopNum].digit = 0; loopNum--;