X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.h;h=6f844926ce9859246b76f72145fed0b84cf32dc8;hp=45bfe8b0ab393bfb9832c4807d790f08afd2e474;hb=553655eb073cdd59c726dd77fcf368d499029467;hpb=8307da0de77c9c7bbf7c56a7d9c8a688ff4dfb4e diff --git a/src/material.h b/src/material.h index 45bfe8b0..6f844926 100644 --- a/src/material.h +++ b/src/material.h @@ -72,8 +72,9 @@ private: class MaterialInfoTable : public SimpleHash { public: - ~MaterialInfoTable(); - void init(); + MaterialInfoTable() : funcs(new Endgames()) {} + ~MaterialInfoTable() { delete funcs; } + MaterialInfo* material_info(const Position& pos) const; static Phase game_phase(const Position& pos);