Skip to content

Commit ed56ec9

Browse files
authored
Merge pull request #485 from NyxieFemboy/fix-negative-sustain-length
2 parents 5a8af43 + 0040d93 commit ed56ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/funkin/editors/charter/CharterNote.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class CharterNote extends UISprite implements ICharterSelectable {
7676
public function updatePos(step:Float, id:Int, susLength:Float = 0, ?type:Int = 0, ?strumLine:CharterStrumline = null) {
7777
this.step = step;
7878
this.id = id;
79-
this.susLength = susLength;
79+
this.susLength = Math.max(susLength, 0);
8080
this.type = type;
8181
if (strumLine != null) this.strumLine = strumLine;
8282

0 commit comments

Comments
 (0)