diff options
author | sylvaintv | 2012-04-22 01:33:12 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-28 17:36:57 +0200 |
commit | c6ee25b179bc88d9570e1537009fe25d7beea773 (patch) | |
tree | 1e9664702757f5c7f32915bc6178a89d13b54d7f /engines/lilliput/script.cpp | |
parent | 16ec550df57d3bb1bc661ec46872b31ca5239adb (diff) | |
download | scummvm-rg350-c6ee25b179bc88d9570e1537009fe25d7beea773.tar.gz scummvm-rg350-c6ee25b179bc88d9570e1537009fe25d7beea773.tar.bz2 scummvm-rg350-c6ee25b179bc88d9570e1537009fe25d7beea773.zip |
LILLIPUT: Minor fixes
Prevents unexpected values in sub16626
Diffstat (limited to 'engines/lilliput/script.cpp')
-rw-r--r-- | engines/lilliput/script.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp index d99b8e7932..cc143f1fdd 100644 --- a/engines/lilliput/script.cpp +++ b/engines/lilliput/script.cpp @@ -1339,11 +1339,13 @@ void LilliputScript::OC_sub17D57() { debugC(1, kDebugScript, "OC_sub17D57()"); int curWord = _currScript->readUint16LE(); - curWord = sub17D40(curWord); - _word1881B = _vm->_rulesBuffer2PrevIndx; + if((_byte16F08 == 1) || (_array16173[_vm->_rulesBuffer2PrevIndx] == 0xFF)) + return; + _word1881B = _vm->_rulesBuffer2PrevIndx; sub18B3C(curWord); + } void LilliputScript::OC_sub17D7F() { |