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; }