aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.cpp
diff options
context:
space:
mode:
authorgeni <me@geni.site>2021-12-31 14:41:53 +0200
committergeni <me@geni.site>2021-12-31 14:41:53 +0200
commit07fbef738274518dfcc60da3a624d03eb09dc015 (patch)
tree6c6ede533cb1fe461d59bb8eeb3041cd29c2a5b1 /NorthstarDedicatedTest/modmanager.cpp
parentae2f240d4f5e0d0c6da777838a42bd3e457d2711 (diff)
downloadNorthstarLauncher-07fbef738274518dfcc60da3a624d03eb09dc015.tar.gz
NorthstarLauncher-07fbef738274518dfcc60da3a624d03eb09dc015.zip
Clean up
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.cpp')
-rw-r--r--NorthstarDedicatedTest/modmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/modmanager.cpp b/NorthstarDedicatedTest/modmanager.cpp
index a9119075..92f32a43 100644
--- a/NorthstarDedicatedTest/modmanager.cpp
+++ b/NorthstarDedicatedTest/modmanager.cpp
@@ -309,7 +309,7 @@ void ModManager::LoadMods()
if (fs::is_regular_file(file))
{
std::string kvStr = file.path().lexically_relative(mod.ModDirectory / "keyvalues").lexically_normal().string();
- mod.KeyValues.insert(std::make_pair(std::hash<std::string>{}(kvStr), kvStr));
+ mod.KeyValues.emplace(std::hash<std::string>{}(kvStr), kvStr);
}
}
}