From a8711158896d993e23d823f41ab086c3915c7d4e Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 30 Jul 2022 12:51:23 +0100 Subject: Fix some warnings (#12615) --- src/server/mods.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/mods.cpp') diff --git a/src/server/mods.cpp b/src/server/mods.cpp index 0e9bf4911..f302d4240 100644 --- a/src/server/mods.cpp +++ b/src/server/mods.cpp @@ -96,7 +96,7 @@ void ServerModManager::getModsMediaPaths(std::vector &paths) const { // Iterate mods in reverse load order: Media loading expects higher priority media files first // and mods loading later should be able to override media of already loaded mods - const auto mods = configuration.getMods(); + const auto &mods = configuration.getMods(); for (auto it = mods.crbegin(); it != mods.crend(); it++) { const ModSpec &spec = *it; fs::GetRecursiveDirs(paths, spec.path + DIR_DELIM + "textures"); -- cgit v1.2.3