mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 23:56:23 +08:00
Do not manually build endgame functions hash keys
Use Position::compute_material_key() to do the job, so we are sure there is not key mismatch during endgame function lookups. This fixes two endgames hash errors that caused two endgames to be disabled. This patch is also a code cleanup because removes a lot of messy key assignments. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -118,7 +118,7 @@ void Position::from_fen(const std::string& fen) {
|
||||
}
|
||||
sideToMove = (fen[i] == 'w' ? WHITE : BLACK);
|
||||
|
||||
// Castling rights:
|
||||
// Castling rights
|
||||
i++;
|
||||
if (fen[i] != ' ')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user