aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/global_cache.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-08-08 17:16:36 +0100
committerGitHub2018-08-08 17:16:36 +0100
commita1c593df9954f2eeb2cc28edba3e89b2a657cb96 (patch)
treea6a876c7a11fd47673af1dfa56335f2763403dde /src/main/game/global_cache.cpp
parentMerge pull request #82 from thecharlesblake/two-deck-testing (diff)
parentPrint seed ofter runing solver (diff)
downloadmetasol-a1c593df9954f2eeb2cc28edba3e89b2a657cb96.tar.gz
metasol-a1c593df9954f2eeb2cc28edba3e89b2a657cb96.zip

Merge pull request #83 from thecharlesblake/fix-write-out-bugs

Fix write out bugs

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 90d962d..f1cf185 100644
--- a/src/main/game/global_cache.cpp
+++ b/src/main/game/global_cache.cpp
@@ -217,7 +217,9 @@ pair<item_list::iterator, bool> lru_cache::insert(const game_state& gs) {
cache.relocate(cache.begin(), prev(cache.end()));
if (i == max_num_items) {
+#ifndef NDEBUG
LOG_ERROR("All items in cache are live and cache is full");
+#endif
throw runtime_error("All items in cache are live and cache is full");
}
}