[Scummvm-cvs-logs] SF.net SVN: scummvm: [22293] scummvm/trunk/engines/simon/items.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Tue May 2 22:36:05 CEST 2006


Revision: 22293
Author:   kirben
Date:     2006-05-02 22:35:08 -0700 (Tue, 02 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22293&view=rev

Log Message:
-----------
Correct result var in checkPaths script opcode in FF

Modified Paths:
--------------
    scummvm/trunk/engines/simon/items.cpp
Modified: scummvm/trunk/engines/simon/items.cpp
===================================================================
--- scummvm/trunk/engines/simon/items.cpp	2006-05-03 04:58:32 UTC (rev 22292)
+++ scummvm/trunk/engines/simon/items.cpp	2006-05-03 05:35:08 UTC (rev 22293)
@@ -1999,13 +1999,13 @@
 
 void SimonEngine::o3_checkPaths() {
 	// 173 check paths
-	int i, val, count;
+	int i, count;
 	const uint8 *pathVal1 = _pathValues1;
 	bool result = false;
 
 	count = _variableArray2[38];
 	for (i = 0; i < count; i++) {
-		val = pathVal1[2];
+		uint8 val = pathVal1[2];
 		if (val == _variableArray2[50] ||
 			val == _variableArray2[51] ||
 			val == _variableArray2[201] ||
@@ -2030,7 +2030,7 @@
 		pathVal1 += 4;
 	}
 
-	_variableArray2[57] = result;
+	_variableArray2[52] = result;
 }
 
 void SimonEngine::o3_screenTextPObj() {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list