diff options
-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; |