aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/content/subgames.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content/subgames.cpp b/src/content/subgames.cpp
index 4bdd84f41..4b0e37f7c 100644
--- a/src/content/subgames.cpp
+++ b/src/content/subgames.cpp
@@ -195,6 +195,7 @@ std::vector<SubgameSpec> getAvailableGames()
{
std::vector<SubgameSpec> specs;
std::set<std::string> gameids = getAvailableGameIds();
+ specs.reserve(gameids.size());
for (const auto &gameid : gameids)
specs.push_back(findSubgame(gameid));
return specs;