X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fendgame.h;h=011299ac6493c012f353102b1e34c0301c666308;hb=2a461b4b745b2542f6e13bab8c60abdb366bc128;hp=e4ee9bc8472b13120c7b60bb26b8b9d5ace3bfc1;hpb=cc8e915ed5fa95fc9cde500e7aac3c4dfe7d2daa;p=stockfish diff --git a/src/endgame.h b/src/endgame.h index e4ee9bc8..011299ac 100644 --- a/src/endgame.h +++ b/src/endgame.h @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008 Marco Costalba + Copyright (C) 2008-2009 Marco Costalba Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -65,7 +65,7 @@ enum EndgameType { template class EndgameFunctionBase { public: - EndgameFunctionBase(Color c) : strongerSide(c) { weakerSide = opposite_color(strongerSide); } + EndgameFunctionBase(Color c) : strongerSide(c), weakerSide(opposite_color(c)) {} virtual ~EndgameFunctionBase() {} virtual T apply(const Position&) = 0;