[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] Small bugfix
From: |
Gunnar Farneback |
Subject: |
[gnugo-devel] Small bugfix |
Date: |
Tue, 02 Jul 2002 22:36:38 +0200 |
User-agent: |
EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode) |
This patch fixes a bug that could cause crashes, but probably very rarely.
/Gunnar
Index: engine/combination.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/combination.c,v
retrieving revision 1.28
diff -u -r1.28 combination.c
--- engine/combination.c 3 Jun 2002 15:00:59 -0000 1.28
+++ engine/combination.c 2 Jul 2002 20:32:33 -0000
@@ -74,7 +74,7 @@
if (save_verbose)
gprintf("Combination attack for %C with size %d found at %1m, defense at
%1m\n",
other, aa_val, attack_point, defense_point);
- if (safe_move(defense_point, color))
+ if (defense_point != NO_MOVE && safe_move(defense_point, color))
add_your_atari_atari_move(defense_point, aa_val);
/* Playing at the attack point is probably also a defense. */
if (safe_move(attack_point, color))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] Small bugfix,
Gunnar Farneback <=