From 693fadd9bc604ac14d143c47a19f8db051d80079 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:41:05 +0300 Subject: [PATCH] i love clang sometimes --- loader/src/loader/ModMetadataImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loader/src/loader/ModMetadataImpl.cpp b/loader/src/loader/ModMetadataImpl.cpp index 29e28c6f..e2f31dd5 100644 --- a/loader/src/loader/ModMetadataImpl.cpp +++ b/loader/src/loader/ModMetadataImpl.cpp @@ -416,6 +416,8 @@ Result<> ModMetadata::Impl::addSpecialFiles(file::Unzip& unzip) { // unzip known MD files for (auto& [file, target] : this->getSpecialFiles()) { if (unzip.hasEntry(file)) { + // reference to local binding 'file' declared in enclosing function + std::string_view file(file); GEODE_UNWRAP_INTO(auto data, unzip.extract(file).mapErr([&](auto const& err) { return fmt::format("Unable to extract \"{}\": {}", file, err); }));