diff options
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/BFontBitmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/BFontBitmap.cpp b/engines/wintermute/BFontBitmap.cpp index 3bec9d5a20..71bbf95801 100644 --- a/engines/wintermute/BFontBitmap.cpp +++ b/engines/wintermute/BFontBitmap.cpp @@ -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;
|