aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/global_cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/game/global_cache.cpp')
-rw-r--r--src/main/game/global_cache.cpp2
1 files changed, 2 insertions, 0 deletions
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);