From cb5bf0796e1af8413a2aab137d6315cc498c0417 Mon Sep 17 00:00:00 2001 From: Retro-Junk Date: Mon, 22 Aug 2016 23:11:41 +0300 Subject: FULLPIPE: Fix always false condition check in MctlGraph::generateList --- engines/fullpipe/motion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 *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; -- cgit v1.2.3