From a7d5ac9963ceb209d99f3c00fe1b16694e6ab8e0 Mon Sep 17 00:00:00 2001 From: chrilith Date: Fri, 23 Jan 2015 13:13:59 +0100 Subject: MORTEVIELLE: Fixed read index parsing alert strings because Pascal code is base 1 --- engines/mortevielle/dialogs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/mortevielle') 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; -- cgit v1.2.3