From 39d1b338b749160a602c58963dba959722ba02a7 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 30 Aug 2023 18:55:24 -0700 Subject: [PATCH] make CardAuctionPool not required --- src/ServerState.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServerState.cc b/src/ServerState.cc index d9285a64..ed5c7e4e 100644 --- a/src/ServerState.cc +++ b/src/ServerState.cc @@ -642,7 +642,7 @@ void ServerState::parse_config(const JSON& json) { this->ep3_card_auction_max_size = 0; } - for (const auto& it : json.at("CardAuctionPool").as_dict()) { + for (const auto& it : json.get("CardAuctionPool", JSON::dict()).as_dict()) { this->ep3_card_auction_pool.emplace_back( CardAuctionPoolEntry{ .probability = static_cast(it.second->at(0).as_int()),