Skip to content

Commit

Permalink
fix(Vfs): incorrect order of entry and file count when writing
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Jun 9, 2024
1 parent 10dce3c commit 51540d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ namespace zenkit {
w->seek(0, Whence::BEG);
w->write_string(comment);
w->write_string(version == GameVersion::GOTHIC_1 ? VFS_DISK_SIGNATURE_G1 : VFS_DISK_SIGNATURE_G2);
w->write_uint(files);
w->write_uint(index);
w->write_uint(files);
w->write_uint(vfs_unix_to_dos_time(time(nullptr)));
w->write_uint(off + catalog.size());
w->write_uint(header_size);
Expand Down

0 comments on commit 51540d8

Please sign in to comment.