fix compilation on big endian systems

svn-id: r11318
This commit is contained in:
Max Horn 2003-11-16 23:35:00 +00:00
parent 20672bd904
commit b5d3add003

View File

@ -42,10 +42,10 @@ namespace Sword2 {
// Quick macro to make swapping in-place easier to write // Quick macro to make swapping in-place easier to write
#define SWAP32(x) x = SWAP_BYTES_32(x) #define SWAP32(x) x = SWAP_BYTES_32(x)
static void convertHeaderEndian(Sword2Engine::_savegameHeader &header) { static void convertHeaderEndian(Sword2Engine::SaveGameHeader &header) {
int i; int i;
// _savegameHeader // SaveGameHeader
SWAP32(header.checksum); SWAP32(header.checksum);
SWAP32(header.varLength); SWAP32(header.varLength);
SWAP32(header.screenId); SWAP32(header.screenId);