From b9c46f6020fc479ac9268c393336e012f970a189 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Mon, 5 Jul 2010 02:49:58 +0200 Subject: [PATCH] board_safe_to_play(): Fix double-lib detection --- board.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board.h b/board.h index 5dabdbf..052cf8e 100644 --- a/board.h +++ b/board.h @@ -518,8 +518,8 @@ board_safe_to_play(struct board *b, coord_t coord, enum stone color) /* we might be connecting two 2-lib groups, which is ok; * so remember the other liberty and just make sure it's * not the same one */ - if (onelib >= 0 && coord != onelib) return true; - onelib = board_group_other_lib(b, g, coord); + if (onelib >= 0 && c != onelib) return true; + onelib = board_group_other_lib(b, g, c); continue; } // many liberties -- 2.11.4.GIT