[Scummvm-cvs-logs] SF.net SVN: scummvm: [23846] scummvm/trunk/engines/gob/scenery_v1.cpp

chrilith at users.sourceforge.net chrilith at users.sourceforge.net
Sat Sep 9 16:19:37 CEST 2006


Revision: 23846
          http://svn.sourceforge.net/scummvm/?rev=23846&view=rev
Author:   chrilith
Date:     2006-09-09 07:19:33 -0700 (Sat, 09 Sep 2006)

Log Message:
-----------
Fixed unaligned read on PalmOS

Modified Paths:
--------------
    scummvm/trunk/engines/gob/scenery_v1.cpp

Modified: scummvm/trunk/engines/gob/scenery_v1.cpp
===================================================================
--- scummvm/trunk/engines/gob/scenery_v1.cpp	2006-09-09 13:57:20 UTC (rev 23845)
+++ scummvm/trunk/engines/gob/scenery_v1.cpp	2006-09-09 14:19:33 UTC (rev 23846)
@@ -146,10 +146,10 @@
 
 		pictIndex = (pictIndex & 15) - 1;
 
-		left = FROM_LE_16(pictPtr[pictIndex][pieceIndex].left);
-		right = FROM_LE_16(pictPtr[pictIndex][pieceIndex].right);
-		top = FROM_LE_16(pictPtr[pictIndex][pieceIndex].top);
-		bottom = FROM_LE_16(pictPtr[pictIndex][pieceIndex].bottom);
+		left = READ_LE_UINT16(&pictPtr[pictIndex][pieceIndex].left);
+		right = READ_LE_UINT16(&pictPtr[pictIndex][pieceIndex].right);
+		top = READ_LE_UINT16(&pictPtr[pictIndex][pieceIndex].top);
+		bottom = READ_LE_UINT16(&pictPtr[pictIndex][pieceIndex].bottom);
 
 		if (flags & 2) {
 			if (destX < _vm->_anim->_areaLeft) {


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