make CardAuctionPool not required
This commit is contained in:
+1
-1
@@ -642,7 +642,7 @@ void ServerState::parse_config(const JSON& json) {
|
|||||||
this->ep3_card_auction_max_size = 0;
|
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(
|
this->ep3_card_auction_pool.emplace_back(
|
||||||
CardAuctionPoolEntry{
|
CardAuctionPoolEntry{
|
||||||
.probability = static_cast<uint64_t>(it.second->at(0).as_int()),
|
.probability = static_cast<uint64_t>(it.second->at(0).as_int()),
|
||||||
|
|||||||
Reference in New Issue
Block a user