aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-03-23 19:28:12 +0000
committerMax Horn2003-03-23 19:28:12 +0000
commitd89b2be0fc5e0307ae5aa61fb7a24d8f10a3cbd8 (patch)
tree969583dfc7ea68079c4f5985820b8b6af3fa8b37 /scumm
parent0d93d1b36f68fcdeff3e9f9b617dbebae4b56391 (diff)
downloadscummvm-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
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v8.cpp2
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 &&