aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorthecharlesblake2018-01-26 22:25:07 +0000
committerthecharlesblake2018-01-26 22:25:07 +0000
commite4e124e9b055a5189cf885901cfdb984c49e84c7 (patch)
treeeb9c05281f5951724ec1ca7bbabb00d215a252d8 /src
parentFix hash bug (diff)
downloadmetasol-e4e124e9b055a5189cf885901cfdb984c49e84c7.tar.gz
metasol-e4e124e9b055a5189cf885901cfdb984c49e84c7.zip

Fix simple hash bug

Diffstat (limited to 'src')
-rw-r--r--src/main/game/global_cache.cpp2
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