Compare commits

...
Author SHA1 Message Date
admin f12be09007 Use direct vectors in Shardok server setup 2026-06-23 12:58:46 -07:00
2 changed files with 2 additions and 2 deletions
@@ -172,7 +172,7 @@ auto SetUpController(
const std::string &serializedRequest,
const std::vector<std::pair<int32_t, std::vector<PlayerId>>> &watcherAllies)
-> std::shared_ptr<ShardokGameController> {
auto unplacedUnits = std::vector<Unit>();
std::vector<Unit> unplacedUnits;
unplacedUnits.reserve(units.size() + TutorialReinforcementUnitCount(tutorialConfig));
UnitId nextUnitId = 0;
@@ -73,7 +73,7 @@ auto main(const int argc, char **argv) -> int {
FilesystemUtils::SetExecPath(argv[0]);
auto extraSettings = std::vector<std::string>();
std::vector<std::string> extraSettings;
extraSettings.reserve(argc - 1);
for (int i = 1; i < argc; i++) { extraSettings.emplace_back(argv[i]); }