diff options
| author | thecharlesblake | 2018-01-26 22:25:07 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-26 22:25:07 +0000 |
| commit | e4e124e9b055a5189cf885901cfdb984c49e84c7 (patch) | |
| tree | eb9c05281f5951724ec1ca7bbabb00d215a252d8 /src/main/game/global_cache.cpp | |
| parent | Fix hash bug (diff) | |
| download | metasol-e4e124e9b055a5189cf885901cfdb984c49e84c7.tar.gz metasol-e4e124e9b055a5189cf885901cfdb984c49e84c7.zip | |
Fix simple hash bug
Diffstat (limited to 'src/main/game/global_cache.cpp')
| -rw-r--r-- | src/main/game/global_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/game/global_cache.cpp b/src/main/game/global_cache.cpp index e58ac04..bb0c433 100644 --- a/src/main/game/global_cache.cpp +++ b/src/main/game/global_cache.cpp @@ -39,7 +39,7 @@ size_t hasher::operator()(const vector<pile>& piles) const { #ifdef SIMPLE_HASH for (game_state::pile_ref pr = 0; pr < piles.size(); pr++) { - seed += combine(hash_value(piles[pr])); + seed += combine(seed, hash_value(piles[pr])); } #else // Using addition for commutative hash |
