X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.h;h=e26418c05a7f1a2d6ea7fedb6667d09f01bf4d0f;hp=efc527a7f98f30980fd8677e3ab35568a4a78a36;hb=9bacd921fa1618b2113d4ca41b0cbd9d3699d466;hpb=35018fa3076a01a62bd4433771c5832d0ddc52e8 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;