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 getAvailableGames() { std::vector specs; std::set gameids = getAvailableGameIds(); + specs.reserve(gameids.size()); for (const auto &gameid : gameids) specs.push_back(findSubgame(gameid)); return specs;