From 66aca3b69d2e07701d954c9f1866967b07ee2ea9 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Sun, 31 May 2026 16:36:13 +0200 Subject: [PATCH] Fix string copy in LocateDllInBundle --- src/dusk/modding/mod_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dusk/modding/mod_loader.cpp b/src/dusk/modding/mod_loader.cpp index 0659173172..c6bdc0f51d 100644 --- a/src/dusk/modding/mod_loader.cpp +++ b/src/dusk/modding/mod_loader.cpp @@ -63,7 +63,7 @@ static std::string_view getFileNameWithoutExtension(const std::string_view fileN static DllLocateResult LocateDllInBundle(ModBundle& bundle) { std::string dllEntry, dllFallback; - for (const auto name : bundle.getFileNames()) { + for (const auto& name : bundle.getFileNames()) { if (!name.ends_with(".dll"sv) && !name.ends_with(".dylib"sv) && !name.ends_with(".so"sv)) { continue; }