From 65f99c718f43a80de7df2a884027755a27aadc49 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Wed, 4 Apr 2018 00:02:21 +0100 Subject: Re-add schemas for rule and deal parsing --- src/main/game/global_cache.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/game') diff --git a/src/main/game/global_cache.cpp b/src/main/game/global_cache.cpp index 048cbc9..29e8d25 100644 --- a/src/main/game/global_cache.cpp +++ b/src/main/game/global_cache.cpp @@ -20,6 +20,8 @@ typedef sol_rules::stock_deal_type sdt; /////////////////////// cached_game_state::cached_game_state(const game_state& gs) { + data.reserve(52+18); // Enough for each card and up to 18 piles + if (gs.rules.hole) { #ifdef NO_REDUCED_STATE add_pile(gs.hole, gs); -- cgit v1.2.1