Fix compilation on BE systems

svn-id: r15791
This commit is contained in:
Max Horn 2004-11-11 20:26:04 +00:00
parent fd2ab69c25
commit ed22985a98

View File

@ -161,7 +161,7 @@ uint8 *Disk::loadFile(uint16 fileNr) {
} else {
#ifdef SCUMM_BIG_ENDIAN
// Convert dataFileHeader to BE (it only consists of 16 bit words)
uint16 *headPtr = (uint16 *)_fileDest;
uint16 *headPtr = (uint16 *)fileDest;
for (uint i = 0; i < sizeof(struct dataFileHeader) / 2; i++)
*(headPtr + i) = READ_LE_UINT16(headPtr + i);
#endif