From e0d5780f41f5333288d8b7d879bc4d62665e3fab Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sun, 22 Jan 2023 15:57:56 +0100 Subject: [PATCH] fixed crashing --- source/funkin/game/PlayState.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 1269284e..f07c8b8b 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1620,8 +1620,10 @@ class PlayState extends MusicBeatState if (char != null) char.playSingAnim(event.direction, event.animSuffix); - if (!event.strumGlowCancelled) note.__strum.press(note.strumTime); - if (event.showSplash) splashHandler.showSplash(note.splash, note.__strum); + if (note.__strum != null) { + if (!event.strumGlowCancelled) note.__strum.press(note.strumTime); + if (event.showSplash) splashHandler.showSplash(note.splash, note.__strum); + } } if (event.unmuteVocals) vocals.volume = 1;