[Scummvm-cvs-logs] SF.net SVN: scummvm:[53663] scummvm/trunk/engines/scumm/he/script_v90he.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Thu Oct 21 07:17:16 CEST 2010


Revision: 53663
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53663&view=rev
Author:   Kirben
Date:     2010-10-21 05:17:16 +0000 (Thu, 21 Oct 2010)

Log Message:
-----------
SCUMM: Correct a copy and paste error in compareByteArray/compareByteArrayReverse code. 

Thanks to clone2727 for noticng this error.

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/he/script_v90he.cpp

Modified: scummvm/trunk/engines/scumm/he/script_v90he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/script_v90he.cpp	2010-10-21 05:13:32 UTC (rev 53662)
+++ scummvm/trunk/engines/scumm/he/script_v90he.cpp	2010-10-21 05:17:16 UTC (rev 53663)
@@ -1952,13 +1952,13 @@
 
 static int compareByteArray(const void *a, const void *b) {
 	int va = *((const uint8 *)a + sortArrayOffset);
-	int vb = *((const uint8 *)a + sortArrayOffset);
+	int vb = *((const uint8 *)b + sortArrayOffset);
 	return va - vb;
 }
 
 static int compareByteArrayReverse(const void *a, const void *b) {
 	int va = *((const uint8 *)a + sortArrayOffset);
-	int vb = *((const uint8 *)a + sortArrayOffset);
+	int vb = *((const uint8 *)b + sortArrayOffset);
 	return vb - va;
 }
 


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