Ticket #8190: cmi-inventory-fix.diff

File cmi-inventory-fix.diff, 590 bytes (added by eriktorbjorn, 17 years ago)

Patch against a March 21 CVS snapshot

  • scummvm/scumm/script_v8.cpp

    diff -ur ScummVM-cvs20030321/scummvm/scumm/script_v8.cpp ScummVM-cvs20030321+hack/scummvm/scumm/script_v8.cpp
    old new  
    15231523                int y = args[2] + (camera._cur.y - (_realHeight /2));;
    15241524                BlastObject *eo;
    15251525
    1526                 for (int i = _blastObjectQueuePos; i >= 0; i--) {
     1526                for (int i = _blastObjectQueuePos - 1; i >= 0; i--) {
    15271527                        eo = &_blastObjectQueue[i];
    15281528
    15291529                        if (eo->posX <= x && eo->width + eo->posX > x &&