diff options
author | chrilith | 2015-01-23 13:13:59 +0100 |
---|---|---|
committer | chrilith | 2015-01-23 14:29:29 +0100 |
commit | a7d5ac9963ceb209d99f3c00fe1b16694e6ab8e0 (patch) | |
tree | 95c251410fe2043d429aedf05ed137a6869481ea /engines | |
parent | 3839d9ce0b0b746da62cd3380f91a48c9748b033 (diff) | |
download | scummvm-rg350-a7d5ac9963ceb209d99f3c00fe1b16694e6ab8e0.tar.gz scummvm-rg350-a7d5ac9963ceb209d99f3c00fe1b16694e6ab8e0.tar.bz2 scummvm-rg350-a7d5ac9963ceb209d99f3c00fe1b16694e6ab8e0.zip |
MORTEVIELLE: Fixed read index parsing alert strings
because Pascal code is base 1
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mortevielle/dialogs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mortevielle/dialogs.cpp b/engines/mortevielle/dialogs.cpp index 95388c7b6a..9df66846d2 100644 --- a/engines/mortevielle/dialogs.cpp +++ b/engines/mortevielle/dialogs.cpp @@ -66,12 +66,12 @@ int DialogManager::show(const Common::String &msg) { drawAlertBox(10, 5, colNumb); } else { drawAlertBox(8, 7, colNumb); - int i = 0; + int i = -1; _vm->_screenSurface->_textPos.y = 70; do { curPos.x = 320; Common::String displayStr = ""; - while ((alertStr[i + 1] != '\174') && (alertStr[i + 1] != '\135')) { + while ((alertStr[i + 1] != '|') && (alertStr[i + 1] != ']')) { ++i; displayStr += alertStr[i]; curPos.x -= 3; |