From e4e124e9b055a5189cf885901cfdb984c49e84c7 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Fri, 26 Jan 2018 22:25:07 +0000 Subject: Fix simple hash bug --- src/main/game/global_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& 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 -- cgit v1.2.1