[Scummvm-cvs-logs] CVS: scummvm/scumm wiz_he.cpp,2.99,2.100

Max Horn fingolfin at users.sourceforge.net
Fri Oct 21 03:30:05 CEST 2005


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

Modified Files:
	wiz_he.cpp 
Log Message:
Disambiguate code semantics (fixing a compiler warning)

Index: wiz_he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/wiz_he.cpp,v
retrieving revision 2.99
retrieving revision 2.100
diff -u -d -r2.99 -r2.100
--- wiz_he.cpp	21 Oct 2005 01:34:41 -0000	2.99
+++ wiz_he.cpp	21 Oct 2005 10:28:59 -0000	2.100
@@ -498,7 +498,8 @@
 					}
 					while (code--) {
 						if (xmapPtr) {
-							*dstPtr++ = xmapPtr[palPtr[*dataPtr] * 256 + *dstPtr];
+							*dstPtr = xmapPtr[palPtr[*dataPtr] * 256 + *dstPtr];
+							dstPtr++;
 						} else {
 							*dstPtr++ = palPtr[*dataPtr];
 						}
@@ -511,7 +512,8 @@
 					}
 					while (code--) {
 						if (xmapPtr) {
-							*dstPtr++ = xmapPtr[palPtr[*dataPtr++] * 256 + *dstPtr];
+							*dstPtr = xmapPtr[palPtr[*dataPtr++] * 256 + *dstPtr];
+							dstPtr++;
 						} else {
 							*dstPtr++ = palPtr[*dataPtr++];
 						}





More information about the Scummvm-git-logs mailing list