diff --git a/src/Vfs.cc b/src/Vfs.cc index 6124226e..287a47d1 100644 --- a/src/Vfs.cc +++ b/src/Vfs.cc @@ -360,7 +360,7 @@ namespace zenkit { w->write_string(version == GameVersion::GOTHIC_1 ? VFS_DISK_SIGNATURE_G1 : VFS_DISK_SIGNATURE_G2); w->write_uint(index); w->write_uint(files); - w->write_uint(unix_t == 0 ? vfs_unix_to_dos_time(time(nullptr)) : vfs_unix_to_dos_time(time(&unix_t))); + w->write_uint(unix_t == 0 ? vfs_unix_to_dos_time(time(nullptr)) : vfs_unix_to_dos_time(unix_t)); w->write_uint(off + catalog.size()); w->write_uint(header_size); w->write_uint(80);