Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
fixed crash with missing (no ghost tapping)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leather128 committed Dec 6, 2021
1 parent 79b0ba6 commit 09aef11
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 09aef11

Please sign in to comment.