Skip to content

Commit 6e64bf4

Browse files
committed
[HTML5] Fix for draw_text_ext when passed string with no spaces
YoYoGames/GameMaker-Bugs#4374
1 parent bb7a360 commit 6e64bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/yyFont.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ yyFontManager.prototype.Split_TextBlock = function (_pStr, linewidth, thefont) {
18901890
end = e;
18911891
}
18921892
else {
1893-
while(pNew[end]!=whitespace)
1893+
while(pNew[end]!=whitespace && end<len)
18941894
end++;
18951895
}
18961896

0 commit comments

Comments
 (0)