diff options
author | Strangerke | 2012-05-18 17:06:58 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-28 17:36:57 +0200 |
commit | 9ecbc0e327f6634df5173f706de24f28d18c71af (patch) | |
tree | b0e7f6e56bb7879de8d921dfbff9e9191e102ad4 /engines | |
parent | 3a102e6f24f756d7dad15c709dd32be8c46f19c1 (diff) | |
download | scummvm-rg350-9ecbc0e327f6634df5173f706de24f28d18c71af.tar.gz scummvm-rg350-9ecbc0e327f6634df5173f706de24f28d18c71af.tar.bz2 scummvm-rg350-9ecbc0e327f6634df5173f706de24f28d18c71af.zip |
LILLIPUT: Fix bug in OC_compWord10804
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lilliput/lilliput.h | 4 | ||||
-rw-r--r-- | engines/lilliput/script.cpp | 10 |
2 files changed, 7 insertions, 7 deletions
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(); } |