[Scummvm-cvs-logs] CVS: scummvm/scumm script_v72he.cpp,2.92,2.93 script_v7he.cpp,2.85,2.86

Travis Howell kirben at users.sourceforge.net
Tue Sep 14 03:47:04 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27445/scumm

Modified Files:
	script_v72he.cpp script_v7he.cpp 
Log Message:

Fix array issues.


Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.92
retrieving revision 2.93
diff -u -d -r2.92 -r2.93
--- script_v72he.cpp	14 Sep 2004 08:01:35 -0000	2.92
+++ script_v72he.cpp	14 Sep 2004 10:46:09 -0000	2.93
@@ -1931,12 +1931,14 @@
 	while (pos < len) {
 		chr = readArray(0, 0, pos);
 		result += getCharsetOffsets(chr);
-		if (result >= max)
-			break;
+		if (result >= max) {
+			push(pos);
+			return;
+		}
 		pos++;
 	}
 
-	push(result);
+	push(len);
 	debug(1,"stub o72_unknownF5 (%d)", result);
 }
 

Index: script_v7he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v7he.cpp,v
retrieving revision 2.85
retrieving revision 2.86
diff -u -d -r2.85 -r2.86
--- script_v7he.cpp	14 Sep 2004 09:09:06 -0000	2.85
+++ script_v7he.cpp	14 Sep 2004 10:46:09 -0000	2.86
@@ -968,12 +968,14 @@
 	while (pos < len) {
 		chr = readArray(0, 0, pos);
 		result += getCharsetOffsets(chr);
-		if (result >= max)
-			break;
+		if (result >= max) {
+			push(pos);
+			return;
+		}
 		pos++;
 	}
 
-	push(result);
+	push(len);
 	debug(1,"stub o7_unknownF5 (%d)", result);
 }
 





More information about the Scummvm-git-logs mailing list