diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/mods.cpp | 2 | ||||
-rw-r--r-- | src/content/mods.h | 2 | ||||
-rw-r--r-- | src/content/subgames.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/content/mods.cpp b/src/content/mods.cpp index 676666f78..95ab0290a 100644 --- a/src/content/mods.cpp +++ b/src/content/mods.cpp @@ -167,7 +167,7 @@ std::map<std::string, ModSpec> getModsInPath( return result; } -std::vector<ModSpec> flattenMods(std::map<std::string, ModSpec> mods) +std::vector<ModSpec> flattenMods(const std::map<std::string, ModSpec> &mods) { std::vector<ModSpec> result; for (const auto &it : mods) { diff --git a/src/content/mods.h b/src/content/mods.h index 6e2506dbf..b3500fbc8 100644 --- a/src/content/mods.h +++ b/src/content/mods.h @@ -68,7 +68,7 @@ std::map<std::string, ModSpec> getModsInPath( const std::string &path, bool part_of_modpack = false); // replaces modpack Modspecs with their content -std::vector<ModSpec> flattenMods(std::map<std::string, ModSpec> mods); +std::vector<ModSpec> flattenMods(const std::map<std::string, ModSpec> &mods); // a ModConfiguration is a subset of installed mods, expected to have // all dependencies fullfilled, so it can be used as a list of mods to diff --git a/src/content/subgames.cpp b/src/content/subgames.cpp index bf947cf85..170f54e20 100644 --- a/src/content/subgames.cpp +++ b/src/content/subgames.cpp @@ -253,7 +253,7 @@ std::vector<WorldSpec> getAvailableWorlds() worldspaths.insert(porting::path_user + DIR_DELIM + "worlds"); infostream << "Searching worlds..." << std::endl; for (const std::string &worldspath : worldspaths) { - infostream << " In " << worldspath << ": " << std::endl; + infostream << " In " << worldspath << ": "; std::vector<fs::DirListNode> dirvector = fs::GetDirListing(worldspath); for (const fs::DirListNode &dln : dirvector) { if (!dln.dir) |