[Scummvm-cvs-logs] scummvm master -> 6ec72a82d5573288853382c869d6370cfe93937f
sev-
sev at scummvm.org
Sat Oct 19 22:10:25 CEST 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
6ec72a82d5 FULLPIPE: Fix crash in MovGraph2::buildMovInfo1SubItems()
Commit: 6ec72a82d5573288853382c869d6370cfe93937f
https://github.com/scummvm/scummvm/commit/6ec72a82d5573288853382c869d6370cfe93937f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-10-19T13:09:59-07:00
Commit Message:
FULLPIPE: Fix crash in MovGraph2::buildMovInfo1SubItems()
Changed paths:
engines/fullpipe/motion.cpp
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 6d0f1a2..a6d32cf 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;
}
}
More information about the Scummvm-git-logs
mailing list