diff options
| author | thecharlesblake | 2018-01-26 22:20:51 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-26 22:20:51 +0000 |
| commit | 572daefb2dcf870c43751a990d703917ac2565aa (patch) | |
| tree | 617d819444227a38d7be6f9f0fbad9e17dd515ec /src/main/game | |
| parent | Refactor game_state & cache to remove static hack (diff) | |
| download | metasol-572daefb2dcf870c43751a990d703917ac2565aa.tar.gz metasol-572daefb2dcf870c43751a990d703917ac2565aa.zip | |
Fix hash bug
Diffstat (limited to 'src/main/game')
| -rw-r--r-- | src/main/game/global_cache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/game/global_cache.cpp b/src/main/game/global_cache.cpp index 1ce8d5d..e58ac04 100644 --- a/src/main/game/global_cache.cpp +++ b/src/main/game/global_cache.cpp @@ -59,10 +59,10 @@ size_t hasher::operator()(const vector<pile>& piles) const { if (init_gs.rules.stock_size > 0) { combine(seed, hash_value(piles[init_gs.stock])); - } - if (init_gs.rules.stock_deal_t == sdt::WASTE) { - combine(seed, hash_value(piles[init_gs.waste])); + if (init_gs.rules.stock_deal_t == sdt::WASTE) { + combine(seed, hash_value(piles[init_gs.waste])); + } } if (init_gs.rules.hole) { |
