X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=5a98821d493dde10d9fe2bd020ba17467c1d7ea5;hp=9db41b784918388f31b9f4d5a3385c043d2ae4f8;hb=a66c73deef420104e74b6645ee60e20b37fd8549;hpb=40548c9153ea89c0b27b198efb443c5bb9b9c490 diff --git a/src/position.cpp b/src/position.cpp index 9db41b78..5a98821d 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -149,6 +149,7 @@ void Position::init() { for (int cr = NO_CASTLING; cr <= ANY_CASTLING; ++cr) { + Zobrist::castling[cr] = 0; Bitboard b = cr; while (b) { @@ -1078,8 +1079,8 @@ Value Position::see(Move m) const { } -/// Position::is_draw() tests whether the position is drawn by material, 50 moves -/// rule or repetition. It does not detect stalemates. +/// Position::is_draw() tests whether the position is drawn by 50-move rule +/// or by repetition. It does not detect stalemates. bool Position::is_draw() const {