X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fendgame.h;h=e26418c05a7f1a2d6ea7fedb6667d09f01bf4d0f;hb=c2c185423b13b0227c86009c6006e48e8d258896;hp=efc527a7f98f30980fd8677e3ab35568a4a78a36;hpb=25b4d0c127af9fe564f7a797460bed4c2837bcc2;p=stockfish diff --git a/src/endgame.h b/src/endgame.h index efc527a7..e26418c0 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(opposite_color(c)) {} + explicit Endgame(Color c) : strongerSide(c), weakerSide(flip(c)) {} Color color() const { return strongerSide; } T apply(const Position&) const;