[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] lunch bugfix
From: |
Arend Bayer |
Subject: |
[gnugo-devel] lunch bugfix |
Date: |
Wed, 14 Apr 2004 20:36:52 +0200 (CEST) |
And another (the first hunk is cosmetic, but the second critical), this
time it's my own fault. This caused an (undeterministic) crash during
regression run.
Arend
- initialize lunch data for single owl move
Index: engine/owl.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/owl.c,v
retrieving revision 1.205
diff -u -p -r1.205 owl.c
--- engine/owl.c 12 Apr 2004 15:28:22 -0000 1.205
+++ engine/owl.c 14 Apr 2004 13:42:01 -0000
@@ -648,6 +648,7 @@ do_owl_analyze_semeai(int apos, int bpos
moves[k].value = -1;
moves[k].name = NULL;
moves[k].same_dragon = 2;
+ moves[k].lunch = NO_MOVE;
}
ASSERT1(other == board[bpos], bpos);
memset(mw, 0, sizeof(mw));
@@ -1651,6 +1652,7 @@ set_single_owl_move(struct owl_move_data
moves[0].name = name;
moves[0].same_dragon = 1;
moves[0].escape = 0;
+ moves[0].lunch = NO_MOVE;
moves[1].value = 0;
}
- [gnugo-devel] lunch bugfix,
Arend Bayer <=