From 2994b852f693b2db22ceead6594d11fba7ffd687 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 14 Feb 2010 00:08:27 +0100 Subject: [PATCH] board_gamma_update(): Fix probdist_set() call --- board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board.c b/board.c index 8b83e8b..ed7dbb1 100644 --- a/board.c +++ b/board.c @@ -411,7 +411,7 @@ board_gamma_update(struct board *board, coord_t coord, enum stone color) value *= board->gamma->gamma[FEAT_AESCAPE][0]; if (!trait_at(board, coord, color).safe) value *= board->gamma->gamma[FEAT_SELFATARI][0]; - probdist_set(&board->prob[color], coord, value); + probdist_set(&board->prob[color - 1], coord, value); #endif } -- 2.11.4.GIT