diff options
author | uruk | 2013-08-09 12:37:35 +0200 |
---|---|---|
committer | uruk | 2013-08-09 12:37:35 +0200 |
commit | 2a6d70cfb81f2e6ba3277c9d18952a1602c3877c (patch) | |
tree | 23cd7cb08d068f376b341dd0d339363e89728644 /engines | |
parent | 626d8aa8c14f09fc735a50a368fe76130a0e1e87 (diff) | |
download | scummvm-rg350-2a6d70cfb81f2e6ba3277c9d18952a1602c3877c.tar.gz scummvm-rg350-2a6d70cfb81f2e6ba3277c9d18952a1602c3877c.tar.bz2 scummvm-rg350-2a6d70cfb81f2e6ba3277c9d18952a1602c3877c.zip |
AVALANCHE: Repair Acci::parse().
Diffstat (limited to 'engines')
-rw-r--r-- | engines/avalanche/acci2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/avalanche/acci2.cpp b/engines/avalanche/acci2.cpp index d1eeb71297..3b9448aad5 100644 --- a/engines/avalanche/acci2.cpp +++ b/engines/avalanche/acci2.cpp @@ -556,7 +556,7 @@ void Acci::parse() { } if (_vm->_gyro->subjnumber == 0) // Still not found. - for (fv = 0; fv < thats.size(); fv++) + for (fv = 0; fv < thats.size() - 1; fv++) if (thats[fv] == 252) { // The word is "about", or something similar. _vm->_gyro->subjnumber = thats[fv + 1]; thats.setChar(0, fv + 1); @@ -564,7 +564,7 @@ void Acci::parse() { } if (_vm->_gyro->subjnumber == 0) // STILL not found! Must be the word after "say". - for (fv = 0; fv < thats.size(); fv++) + for (fv = 0; fv < thats.size() - 1; fv++) if ((thats[fv] == 7) && (thats[fv + 1] != 0) && !((225 <= thats[fv + 1]) && (thats[fv + 1] <= 229))) { // SAY not followed by a preposition _vm->_gyro->subjnumber = thats[fv + 1]; |