[Scummvm-cvs-logs] CVS: scummvm/scumm boxes.cpp,1.39,1.40

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Wed Jun 11 23:54:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv32595

Modified Files:
	boxes.cpp 
Log Message:
The compressed box matrix would sometimes refer to the box after the last
one. This was probably harmless, but the fix seems to be trivial. I hope.


Index: boxes.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/boxes.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- boxes.cpp	11 Jun 2003 21:34:34 -0000	1.39
+++ boxes.cpp	12 Jun 2003 06:53:05 -0000	1.40
@@ -850,7 +850,7 @@
 			byte itinerary = itineraryMatrix[64 * i + j];
 			if (itinerary != Actor::kInvalidBox) {
 				addToMatrix(j);
-				while (j < num && itinerary == itineraryMatrix[64 * i + (j + 1)])
+				while (j < num - 1 && itinerary == itineraryMatrix[64 * i + (j + 1)])
 					j++;
 				addToMatrix(j);
 				addToMatrix(itinerary);





More information about the Scummvm-git-logs mailing list