Skip to content

Commit 5e4b06e

Browse files
authored
Merge pull request official-stockfish#534 from ianfab/variant_end
Remove redundant check for variant end
2 parents 3d0f894 + a61a781 commit 5e4b06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,8 +1491,8 @@ namespace {
14911491

14921492
if (!moveCount)
14931493
{
1494+
assert(!pos.is_variant_end()); // was already checked
14941495
bestValue = excludedMove ? alpha
1495-
: pos.is_variant_end() ? pos.variant_result(ss->ply, VALUE_DRAW)
14961496
: inCheck ? pos.checkmate_value(ss->ply)
14971497
: pos.stalemate_value(ss->ply, VALUE_DRAW);
14981498
}

0 commit comments

Comments
 (0)