From 9ecbc0e327f6634df5173f706de24f28d18c71af Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 18 May 2012 17:06:58 +0200 Subject: LILLIPUT: Fix bug in OC_compWord10804 --- engines/lilliput/lilliput.h | 4 ++-- engines/lilliput/script.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'engines') diff --git a/engines/lilliput/lilliput.h b/engines/lilliput/lilliput.h index 84b1a60105..5ec93e1c6f 100644 --- a/engines/lilliput/lilliput.h +++ b/engines/lilliput/lilliput.h @@ -337,8 +337,8 @@ public: byte _byte12FCE; byte _byte129A0; byte _numCharactersToDisplay; - byte _byte16C9F; - int _word10804; + byte _byte16C9F; + int16 _word10804; bool _shouldQuit; diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp index 2f784f8373..32ee332cfb 100644 --- a/engines/lilliput/script.cpp +++ b/engines/lilliput/script.cpp @@ -1743,9 +1743,9 @@ byte LilliputScript::OC_sub176C4() { } byte LilliputScript::OC_compWord10804() { - debugC(1, kDebugScriptTBC, "OC_compWord10804()"); + debugC(1, kDebugScript, "OC_compWord10804()"); - byte tmpVal = getValue1(); + int tmpVal = getValue1(); if (tmpVal == _vm->_word10804) return 1; @@ -2284,7 +2284,7 @@ void LilliputScript::OC_setCharacterPosition() { } void LilliputScript::OC_DisableCharacter() { - debugC(1, kDebugScriptTBC, "OC_DisableCharacter()"); + debugC(1, kDebugScript, "OC_DisableCharacter()"); int characterIndex = getValue1(); assert(characterIndex < 40); @@ -2352,7 +2352,7 @@ void LilliputScript::OC_setByte18823() { } void LilliputScript::OC_callScript() { - debugC(1, kDebugScriptTBC, "OC_callScript()"); + debugC(1, kDebugScript, "OC_callScript()"); int index = _currScript->readUint16LE(); int var1 = getValue1(); @@ -2416,7 +2416,7 @@ void LilliputScript::OC_sub17AEE() { } void LilliputScript::OC_setWord10804() { - debugC(1, kDebugScriptTBC, "OC_setWord10804()"); + debugC(1, kDebugScript, "OC_setWord10804()"); _vm->_word10804 = getValue1(); } -- cgit v1.2.3