From e38e8fa528ec185834442b4334666e1f08931a32 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Tue, 22 Apr 2025 23:45:30 -0400 Subject: [PATCH] Fix autogenerated mod manifests --- librecomp/src/mod_manifest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/librecomp/src/mod_manifest.cpp b/librecomp/src/mod_manifest.cpp index d1e95ea..4bccf00 100644 --- a/librecomp/src/mod_manifest.cpp +++ b/librecomp/src/mod_manifest.cpp @@ -751,8 +751,10 @@ recomp::mods::ModOpenError recomp::mods::ModContext::open_mod_from_manifest(ModM else { // Take the file handle from the manifest before clearing it so that it can be reassigned afterwards. std::unique_ptr file_handle = std::move(manifest.file_handle); + std::filesystem::path root_path = std::move(manifest.mod_root_path); manifest = {}; manifest.file_handle = std::move(file_handle); + manifest.mod_root_path = std::move(root_path); for (const auto &[key, val] : mod_game_ids) { manifest.mod_game_ids.emplace_back(key);