diff options
author | Retro-Junk | 2016-08-22 23:11:41 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-22 22:21:49 +0200 |
commit | cb5bf0796e1af8413a2aab137d6315cc498c0417 (patch) | |
tree | b9c5b63ba15db9d2a35a1f00fff220b72cff0422 | |
parent | ec23290df109c72b3bd76a1cedc7ddb9a9da76c0 (diff) | |
download | scummvm-rg350-cb5bf0796e1af8413a2aab137d6315cc498c0417.tar.gz scummvm-rg350-cb5bf0796e1af8413a2aab137d6315cc498c0417.tar.bz2 scummvm-rg350-cb5bf0796e1af8413a2aab137d6315cc498c0417.zip |
FULLPIPE: Fix always false condition check in MctlGraph::generateList
-rw-r--r-- | engines/fullpipe/motion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 99c21891da..4a08b4e115 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -1932,7 +1932,7 @@ void MctlGraph::generateList(MctlMQ *movinfo, Common::Array<MovGraphLink *> *lin movinfo->items.push_back(elem); - if (i == linkList->size()) { + if (i == linkList->size() - 1) { elem = new MctlMQSub; elem->subIndex = prevSubIndex; elem->x = movinfo->pt2.x; |