diff options
author | Eugene Sandulenko | 2013-10-19 22:45:30 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-10-19 23:09:59 +0300 |
commit | 6ec72a82d5573288853382c869d6370cfe93937f (patch) | |
tree | 4d90ce8cd4c53e82d529e4cf58fec95615957226 /engines | |
parent | 5ecfc1e48f6990d084ec5cbda993e96f49c74744 (diff) | |
download | scummvm-rg350-6ec72a82d5573288853382c869d6370cfe93937f.tar.gz scummvm-rg350-6ec72a82d5573288853382c869d6370cfe93937f.tar.bz2 scummvm-rg350-6ec72a82d5573288853382c869d6370cfe93937f.zip |
FULLPIPE: Fix crash in MovGraph2::buildMovInfo1SubItems()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/motion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 6d0f1a2530..a6d32cfb48 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -585,7 +585,7 @@ void MovGraph2::buildMovInfo1SubItems(MovInfo1 *movinfo, Common::Array<MovGraphL movinfo->items.push_back(elem); } - if (i != linkList->size()) { + if (i != linkList->size() - 1) { while (1) { i++; if (findLink(linkList, i, &rect, 0) != prevSubIndex) { @@ -595,7 +595,7 @@ void MovGraph2::buildMovInfo1SubItems(MovInfo1 *movinfo, Common::Array<MovGraphL break; } - if (i == linkList->size()) + if (i == linkList->size() - 1) break; } } |