|
|
@ -2772,7 +2772,7 @@ static SaveOrLoadResult SaveFileToDisk(bool threaded)
|
|
|
|
const SaveLoadFormat *fmt = GetSavegameFormat(_savegame_format, &compression);
|
|
|
|
const SaveLoadFormat *fmt = GetSavegameFormat(_savegame_format, &compression);
|
|
|
|
|
|
|
|
|
|
|
|
/* We have written our stuff to memory, now write it to file! */
|
|
|
|
/* We have written our stuff to memory, now write it to file! */
|
|
|
|
uint32 hdr[2] = { fmt->tag, TO_BE32((SAVEGAME_VERSION | SAVEGAME_VERSION_EXT) << 16) };
|
|
|
|
uint32 hdr[2] = { fmt->tag, TO_BE32((uint32) (SAVEGAME_VERSION | SAVEGAME_VERSION_EXT) << 16) };
|
|
|
|
_sl.sf->Write((byte*)hdr, sizeof(hdr));
|
|
|
|
_sl.sf->Write((byte*)hdr, sizeof(hdr));
|
|
|
|
|
|
|
|
|
|
|
|
_sl.sf = fmt->init_write(_sl.sf, compression);
|
|
|
|
_sl.sf = fmt->init_write(_sl.sf, compression);
|
|
|
|