X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.h;h=70f795cd19782c7a4aec23dd3c0217db51b4efd9;hp=d91ec40f8531a4bbb09a7eaec5cdeb98ee73c1b4;hb=553655eb073cdd59c726dd77fcf368d499029467;hpb=8307da0de77c9c7bbf7c56a7d9c8a688ff4dfb4e diff --git a/src/endgame.h b/src/endgame.h index d91ec40f..70f795cd 100644 --- a/src/endgame.h +++ b/src/endgame.h @@ -82,7 +82,7 @@ struct EndgameBase { template::type> struct Endgame : public EndgameBase { - explicit Endgame(Color c) : strongerSide(c), weakerSide(flip(c)) {} + explicit Endgame(Color c) : strongerSide(c), weakerSide(~c) {} Color color() const { return strongerSide; } T operator()(const Position&) const;