diff options
author | Max Horn | 2003-03-23 19:28:12 +0000 |
---|---|---|
committer | Max Horn | 2003-03-23 19:28:12 +0000 |
commit | d89b2be0fc5e0307ae5aa61fb7a24d8f10a3cbd8 (patch) | |
tree | 969583dfc7ea68079c4f5985820b8b6af3fa8b37 | |
parent | 0d93d1b36f68fcdeff3e9f9b617dbebae4b56391 (diff) | |
download | scummvm-rg350-d89b2be0fc5e0307ae5aa61fb7a24d8f10a3cbd8.tar.gz scummvm-rg350-d89b2be0fc5e0307ae5aa61fb7a24d8f10a3cbd8.tar.bz2 scummvm-rg350-d89b2be0fc5e0307ae5aa61fb7a24d8f10a3cbd8.zip |
Patch #708384: Off-by-one bug which causes inventory problems in COMI
svn-id: r6852
-rw-r--r-- | scumm/script_v8.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index fb7a004681..433d703dd0 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -1523,7 +1523,7 @@ void Scumm_v8::o8_kernelGetFunctions() { int y = args[2] + (camera._cur.y - (_realHeight /2));; BlastObject *eo; - for (int i = _blastObjectQueuePos; i >= 0; i--) { + for (int i = _blastObjectQueuePos - 1; i >= 0; i--) { eo = &_blastObjectQueue[i]; if (eo->posX <= x && eo->width + eo->posX > x && |