diff --git a/source/states/PlayState.hx b/source/states/PlayState.hx index d8dd29810b..9fc142ede5 100644 --- a/source/states/PlayState.hx +++ b/source/states/PlayState.hx @@ -2877,14 +2877,17 @@ class PlayState extends MusicBeatState if(missValues) { - if(FlxG.save.data.missOnHeldNotes && !note.missesSustains) + if(note != null) { - note.missesSustains = true; - - for(sustain in note.sustains) + if(FlxG.save.data.missOnHeldNotes && !note.missesSustains) { - if(sustain != null) - sustain.missesSustains = true; + note.missesSustains = true; + + for(sustain in note.sustains) + { + if(sustain != null) + sustain.missesSustains = true; + } } }