X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=fefce56e2aa1088621a755f393e390cca534acae;hp=0ac450570b91b28ac468373995b42033ef0f3164;hb=ddcbacd04d1c860e808202ce8c1206c8acdca627;hpb=ec2002c594cce22dfbbdc7b6b8df2828a00d18cf;ds=sidebyside diff --git a/src/position.cpp b/src/position.cpp index 0ac45057..fefce56e 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1121,10 +1121,7 @@ bool Position::is_draw(int ply) const { // Return a draw score if a position repeats once earlier but strictly // after the root, or repeats twice before or at the root. - if (st->repetition && st->repetition < ply) - return true; - - return false; + return st->repetition && st->repetition < ply; }