aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/screentext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/illusions/screentext.cpp')
-rw-r--r--engines/illusions/screentext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/illusions/screentext.cpp b/engines/illusions/screentext.cpp
index 0f811df08d..206272dd27 100644
--- a/engines/illusions/screentext.cpp
+++ b/engines/illusions/screentext.cpp
@@ -135,8 +135,9 @@ bool ScreenText::insertText(uint16 *text, uint32 fontId, WidthHeight dimensions,
_vm->_screenPalette->setPaletteEntry(font->getColorIndex(), screenText->_info._colorR, screenText->_info._colorG, screenText->_info._colorB);
uint16 *textPart = screenText->_text;
- while (text != outTextPtr)
+ while (text != outTextPtr) {
*textPart++ = *text++;
+ }
*textPart = 0;
updateTextInfoPosition(Common::Point(160, 100));