[Scummvm-cvs-logs] scummvm master -> 95b1bfa0bee99f6ab6396b463ad188b3c0ade31c

digitall digitall at scummvm.org
Tue Mar 1 08:03:45 CET 2011


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:
95b1bfa0be HUGO: Correction for Schedule saveActions() mistake.


Commit: 95b1bfa0bee99f6ab6396b463ad188b3c0ade31c
    https://github.com/scummvm/scummvm/commit/95b1bfa0bee99f6ab6396b463ad188b3c0ade31c
Author: D G Turner (digitall at scummvm.org)
Date: 2011-02-28T23:02:21-08:00

Commit Message:
HUGO: Correction for Schedule saveActions() mistake.

Changed paths:
    engines/hugo/schedule.cpp



diff --git a/engines/hugo/schedule.cpp b/engines/hugo/schedule.cpp
index 941c7db..257b1d7 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++) {






More information about the Scummvm-git-logs mailing list