From: Marco Costalba Date: Thu, 22 Aug 2013 11:02:20 +0000 (+0200) Subject: Retire redundant endgames X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=c4533e0d94a273cc10e0530a2953d369c6afbb8e;hp=c4533e0d94a273cc10e0530a2953d369c6afbb8e Retire redundant endgames The case of two lone kings on the board is already considered by the "No pawns" scaling factor rules in material.cpp as is KBK and KNK. Moreover we had a small leak in endgames map because for KK endgame it happens white and black material keys are the same (both equal to zero), so when adding the black endgame in Endgames::add() we were overwriting the already exsisting white one, leading to a memory leak found by Valgrind. So remove the endgames althogheter and rely on scaling to correctly set the endgames value to a draw. No functional change. ---