From 8037c0147c38cc4c66f81e7cb7a749a7a4e5b7a1 Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Tue, 7 Dec 2010 21:16:38 +0100 Subject: [PATCH] TD_GAMES: Do not crash when pondering is enabled (fix 95e09d4) --- uct/walk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uct/walk.c b/uct/walk.c index 3d80bc7..1169484 100644 --- a/uct/walk.c +++ b/uct/walk.c @@ -506,7 +506,7 @@ int uct_playouts(struct uct *u, struct board *b, enum stone color, struct tree *t, struct time_info *ti) { int i; - if (ti->dim == TD_GAMES) { + if (ti && ti->dim == TD_GAMES) { for (i = 0; t->root->u.playouts <= ti->len.games; i++) uct_playout(u, b, color, t); } else { -- 2.11.4.GIT