mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
WINTERMUTE: Fix font-related crash.
This commit is contained in:
parent
858989a685
commit
d4fd90e064
@ -166,7 +166,7 @@ int CBFontBitmap::TextHeightDraw(byte *text, int x, int y, int width, TTextAlig
|
||||
long_line = true;
|
||||
}
|
||||
|
||||
if (str[index + 1] == '\0' || (MaxLenght >= 0 && index == MaxLenght - 1)) {
|
||||
if (str.size() == (index + 1) || (MaxLenght >= 0 && index == MaxLenght - 1)) {
|
||||
done = true;
|
||||
if (!new_line) {
|
||||
end = index;
|
||||
|
Loading…
x
Reference in New Issue
Block a user