Fixed endianness issue with saved games

See http://forum.zdoom.org/viewtopic.php?t=54272
This commit is contained in:
alexey.lysiuk 2016-11-19 12:40:08 +02:00 committed by Christoph Oelckers
parent f2ec266eec
commit 3b240b73e9

View file

@ -577,7 +577,7 @@ bool WriteZip(const char *filename, TArray<FString> &filenames, TArray<FCompress
dirend.DiskNumber = 0;
dirend.FirstDisk = 0;
dirend.NumEntriesOnAllDisks = dirend.NumEntries = LittleShort(filenames.Size());
dirend.DirectoryOffset = dirofs;
dirend.DirectoryOffset = LittleLong(dirofs);
dirend.DirectorySize = LittleLong(ftell(f) - dirofs);
dirend.ZipCommentLength = 0;
if (fwrite(&dirend, sizeof(dirend), 1, f) != 1)