aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2011-03-01 06:59:41 +0000
committerD G Turner2011-03-01 07:02:21 +0000
commit95b1bfa0bee99f6ab6396b463ad188b3c0ade31c (patch)
tree05e4815e01031060aab3dab680cf3e005da8f496 /engines
parent5ffecd85b332a73ef803b5755f80b6180883153e (diff)
downloadscummvm-rg350-95b1bfa0bee99f6ab6396b463ad188b3c0ade31c.tar.gz
scummvm-rg350-95b1bfa0bee99f6ab6396b463ad188b3c0ade31c.tar.bz2
scummvm-rg350-95b1bfa0bee99f6ab6396b463ad188b3c0ade31c.zip
HUGO: Correction for Schedule saveActions() mistake.
Diffstat (limited to 'engines')
-rw-r--r--engines/hugo/schedule.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/hugo/schedule.cpp b/engines/hugo/schedule.cpp
index 941c7db505..257b1d70f3 100644
--- a/engines/hugo/schedule.cpp
+++ b/engines/hugo/schedule.cpp
@@ -753,8 +753,7 @@ void Scheduler::saveActions(Common::WriteStream *f) const {
for (int i = 0; i < _actListArrSize; i++) {
// write all the sub elems data
- for (nbrSubElem = 1; _actListArr[i][nbrSubElem - 1].a0.actType != ANULL; i++)
- ;
+ for (nbrSubElem = 1; _actListArr[i][nbrSubElem - 1].a0.actType != ANULL; nbrSubElem++);
f->writeUint16BE(nbrSubElem);
for (int j = 0; j < nbrSubElem; j++) {