diff options
author | Martin Kiewitz | 2009-10-14 10:25:06 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-14 10:25:06 +0000 |
commit | 7c2eae0ca34d59ee2093f6289f03b2a7eb186cd6 (patch) | |
tree | 73960049f2bb3320e26ad7480733a88c75fc72c2 | |
parent | caaac0130aa79b7145d5608f8dff5b3fe422704a (diff) | |
download | scummvm-rg350-7c2eae0ca34d59ee2093f6289f03b2a7eb186cd6.tar.gz scummvm-rg350-7c2eae0ca34d59ee2093f6289f03b2a7eb186cd6.tar.bz2 scummvm-rg350-7c2eae0ca34d59ee2093f6289f03b2a7eb186cd6.zip |
SCI/newgui: fixes textcode processing to get out if string ends and no ending delimiter found
svn-id: r45065
-rw-r--r-- | engines/sci/gui/gui_gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index 6b53481339..ebf54687f4 100644 --- a/engines/sci/gui/gui_gfx.cpp +++ b/engines/sci/gui/gui_gfx.cpp @@ -336,7 +336,7 @@ int16 SciGuiGfx::TextCodeProcessing(const char *&text, GuiResourceId orgFontId, unsigned char curCodeParm; // Find the end of the textcode - while ((++textCodeSize) && (*text++ != 0x7C)) { } + while ((++textCodeSize) && (*text != 0) && (*text++ != 0x7C)) { } // possible TextCodes: // c -> sets textColor to current port pen color |