aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-07-30 12:51:23 +0100
committerGitHub <noreply@github.com>2022-07-30 12:51:23 +0100
commita8711158896d993e23d823f41ab086c3915c7d4e (patch)
tree4883ab0310ec344883b8042dea3195cd73717c2e /src/server
parent6a269d58ef28be6428a5fb62c0eb966fc1ff5883 (diff)
downloadminetest-a8711158896d993e23d823f41ab086c3915c7d4e.tar.gz
minetest-a8711158896d993e23d823f41ab086c3915c7d4e.tar.bz2
minetest-a8711158896d993e23d823f41ab086c3915c7d4e.zip
Fix some warnings (#12615)
Diffstat (limited to 'src/server')
-rw-r--r--src/server/mods.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string> &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");