X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.h;h=278ddb617a1581c3b5f7366fa8746633065be704;hp=49f39990ba513e6ca8584df55fa9ebadddfe6d9d;hb=67b0da83da343cb6046f2a2f088f7aa1a6276637;hpb=27f2ce8f6e8462bd9be4b201dd95fc2df17aafe6 diff --git a/src/endgame.h b/src/endgame.h index 49f39990..278ddb61 100644 --- a/src/endgame.h +++ b/src/endgame.h @@ -52,6 +52,7 @@ enum EndgameType { KBPsK, // KB+pawns vs K KQKRPs, // KQ vs KR+pawns KRPKR, // KRP vs KR + KRPKB, // KRP vs KB KRPPKRP, // KRPP vs KRP KPsK, // King and pawns vs king KBPKB, // KBP vs KB @@ -85,12 +86,12 @@ struct EndgameBase { template SCALE_FUNS)>::type> struct Endgame : public EndgameBase { - explicit Endgame(Color c) : strongerSide(c), weakerSide(~c) {} - Color color() const { return strongerSide; } + explicit Endgame(Color c) : strongSide(c), weakSide(~c) {} + Color color() const { return strongSide; } T operator()(const Position&) const; private: - Color strongerSide, weakerSide; + const Color strongSide, weakSide; };