mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-11 02:57:09 +00:00
# Fixed a file save bug (wrong data size was being written, making the saved file invalid).
This was SVN commit r5595.
This commit is contained in:
@@ -33,7 +33,7 @@ CFilePacker::CFilePacker(u32 version, const char magicstr[4])
|
||||
// Write: write out to file all packed data added so far
|
||||
void CFilePacker::Write(const VfsPath& filename)
|
||||
{
|
||||
const u32 size_le = to_le32(u32_from_larger(m_writeBuffer.Size()));
|
||||
const u32 size_le = to_le32(u32_from_larger(m_writeBuffer.Size() - 12));
|
||||
m_writeBuffer.Overwrite(&size_le, sizeof(size_le), 8);
|
||||
|
||||
// write out all data (including header)
|
||||
|
||||
Reference in New Issue
Block a user