From c19105a8af86dfd794035ee67d6d8a6b2a822a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Thu, 1 Aug 2024 09:23:07 +0200 Subject: [PATCH] archive fix --- WickedEngine/wiArchive.h | 5 +++-- WickedEngine/wiVersion.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/WickedEngine/wiArchive.h b/WickedEngine/wiArchive.h index 281eb019c..7858e8c45 100644 --- a/WickedEngine/wiArchive.h +++ b/WickedEngine/wiArchive.h @@ -258,8 +258,9 @@ namespace wi inline Archive& operator<<(const wi::Archive& other) { // Here we will use the << operator so that non-specified types will have compile error! - // Note: version is skipped, only data is appended - for (size_t i = sizeof(version); i < other.pos; ++i) + // Note: version and thumbnail data is skipped, only data is appended + const size_t start = sizeof(uint64_t) * 2; // version and thumbnail size + for (size_t i = start; i < other.pos; ++i) { (*this) << other.data_ptr[i]; } diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index cbf4cab95..679ca5f96 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -9,7 +9,7 @@ namespace wi::version // minor features, major updates, breaking compatibility changes const int minor = 71; // minor bug fixes, alterations, refactors, updates - const int revision = 528; + const int revision = 529; const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);