[Scummvm-cvs-logs] SF.net SVN: scummvm:[42754] scummvm/branches/branch-1-0-0/engines/cruise/ linker.cpp

joostp at users.sourceforge.net joostp at users.sourceforge.net
Sat Jul 25 15:07:40 CEST 2009


Revision: 42754
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42754&view=rev
Author:   joostp
Date:     2009-07-25 13:07:40 +0000 (Sat, 25 Jul 2009)

Log Message:
-----------
fix another aligned write

Modified Paths:
--------------
    scummvm/branches/branch-1-0-0/engines/cruise/linker.cpp

Modified: scummvm/branches/branch-1-0-0/engines/cruise/linker.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/cruise/linker.cpp	2009-07-25 13:07:17 UTC (rev 42753)
+++ scummvm/branches/branch-1-0-0/engines/cruise/linker.cpp	2009-07-25 13:07:40 UTC (rev 42754)
@@ -183,9 +183,7 @@
 									uint8 *ptr = ptrData + temp;
 
 									*(ptr + 1) = out2;
-									*(int16 *)(ptr + 2) = ptrDest2->idx;
-
-									bigEndianShortToNative((int16 *)(ptr + 2));
+									WRITE_BE_UINT16(ptr + 2, ptrDest2->idx);
 								} else {
 									if (param2 == 20 || param2 == 30 || param2 == 40 || param2 == 50) {	// this patch a double push
 										uint8 *ptr = ptrData + temp;


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