diff --git a/docs/engine/formats/vdf.md b/docs/engine/formats/vdf.md index 3c9f0c52..bb39a67e 100644 --- a/docs/engine/formats/vdf.md +++ b/docs/engine/formats/vdf.md @@ -36,8 +36,8 @@ a C struct like this. struct zFILE_VDFS_Header { char comment[256]; // (1) char signature[16]; // (2) - uint numFiles; uint numEntries; + uint numFiles; uint timestamp; // (3) uint size; // (4) uint catalogOffset; // (5) diff --git a/src/Vfs.cc b/src/Vfs.cc index 0b549357..6070ada7 100644 --- a/src/Vfs.cc +++ b/src/Vfs.cc @@ -558,8 +558,8 @@ namespace zenkit { auto comment = r->read_string(256); auto signature = r->read_string(16); - [[maybe_unused]] auto file_count = r->read_uint(); [[maybe_unused]] auto entry_count = r->read_uint(); + [[maybe_unused]] auto file_count = r->read_uint(); auto timestamp = vfs_dos_to_unix_time(r->read_uint()); [[maybe_unused]] auto _size = r->read_uint(); auto catalog_offset = r->read_uint();