Skip to content

Commit

Permalink
crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion committed Dec 16, 2023
1 parent 907aba1 commit 760b42d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions source/states/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -437,14 +437,16 @@ class TitleState extends MusicBeatState {
}

function textDataText(line:Int) {
var lineText:Null<String> = titleTextData[line];

if (lineText != null) {
if (lineText.contains("~")) {
var coolText = lineText.split("~");
createCoolText(coolText);
} else
addMoreText(lineText);
if(line >= 0){
var lineText:Null<String> = titleTextData[line];

if (lineText != null) {
if (lineText.contains("~")) {
var coolText = lineText.split("~");
createCoolText(coolText);
} else
addMoreText(lineText);
}
}
}

Expand Down

0 comments on commit 760b42d

Please sign in to comment.