Skip to content

Commit 2a24927

Browse files
committed
Fix crash when clicking links in credits box
The newline character (\n) at the end of each line was getting parsed into the link, which caused a crash when it was forwarded to the `open_url` function.
1 parent 21cbaf5 commit 2a24927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/draw_window_about/draw_window_about.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function draw_window_about() {
4747
}
4848
if (string_pos("|", str[a]) > 0) { // Hyperlink
4949
var split = string_pos("|", str[a])
50-
strurl[a] = string_copy(str[a], split + 1, string_length(str[a]) - split)
50+
strurl[a] = string_copy(str[a], split + 1, string_length(str[a]) - split - 1)
5151
str[a] = string_copy(str[a], 1, split - 1)
5252
}
5353
fullstr = string_delete(fullstr, 1, string_pos("\n", fullstr))

0 commit comments

Comments
 (0)