aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRetro-Junk2016-08-22 23:11:41 +0300
committerEugene Sandulenko2016-08-22 22:21:49 +0200
commitcb5bf0796e1af8413a2aab137d6315cc498c0417 (patch)
treeb9c5b63ba15db9d2a35a1f00fff220b72cff0422
parentec23290df109c72b3bd76a1cedc7ddb9a9da76c0 (diff)
downloadscummvm-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.cpp2
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;