From e9315734f5ddcb9fb24a9a9decaf72ca325341ba Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 29 Jun 2010 01:05:18 +0200 Subject: [PATCH] UCT tree_node: Drop the unused pamaf field --- uct/tree.c | 1 - uct/tree.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/uct/tree.c b/uct/tree.c index fbac8dd..6fb36f7 100644 --- a/uct/tree.c +++ b/uct/tree.c @@ -307,7 +307,6 @@ tree_node_load(FILE *f, struct tree_node *node, int *num) if (node->amaf.playouts > MAX_PLAYOUTS) { node->amaf.playouts = MAX_PLAYOUTS; } - memcpy(&node->pamaf, &node->amaf, sizeof(node->amaf)); memcpy(&node->pu, &node->u, sizeof(node->u)); struct tree_node *ni = NULL, *ni_prev = NULL; diff --git a/uct/tree.h b/uct/tree.h index 4b3e80b..ecf03e5 100644 --- a/uct/tree.h +++ b/uct/tree.h @@ -78,7 +78,7 @@ struct tree_node { /* XXX: Should be way for policies to add their own stats */ struct move_stats amaf; /* Stats before starting playout; used for distributed engine. */ - struct move_stats pu, pamaf; + struct move_stats pu; }; struct tree_hash; -- 2.11.4.GIT