@@ -68,8 +68,10 @@ namespace {
6868// / ordering is at the current node.
6969
7070MovePicker::MovePicker (const Position& p, Move ttm, Depth d, const HistoryStats& h,
71- const CounterMoveStats& cmh, const CounterMoveStats& fmh, Move cm, Search::Stack* s)
72- : pos(p), history(h), counterMoveHistory(&cmh), followupMoveHistory(&fmh), ss(s), countermove(cm), depth(d) {
71+ const CounterMoveStats& cmh, const CounterMoveStats& fmh,
72+ Move cm, Search::Stack* s)
73+ : pos(p), history(h), counterMoveHistory(&cmh),
74+ followupMoveHistory(&fmh), ss(s), countermove(cm), depth(d) {
7375
7476 assert (d > DEPTH_ZERO);
7577
@@ -80,7 +82,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const HistoryStats&
8082
8183MovePicker::MovePicker (const Position& p, Move ttm, Depth d,
8284 const HistoryStats& h, Square s)
83- : pos(p), history(h), counterMoveHistory( nullptr ), followupMoveHistory( nullptr ) {
85+ : pos(p), history(h) {
8486
8587 assert (d <= DEPTH_ZERO);
8688
@@ -105,7 +107,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d,
105107}
106108
107109MovePicker::MovePicker (const Position& p, Move ttm, const HistoryStats& h, Value th)
108- : pos(p), history(h), counterMoveHistory( nullptr ), followupMoveHistory( nullptr ), threshold(th) {
110+ : pos(p), history(h), threshold(th) {
109111
110112 assert (!pos.checkers ());
111113
@@ -142,7 +144,7 @@ void MovePicker::score<QUIETS>() {
142144
143145 for (auto & m : *this )
144146 m.value = history[pos.moved_piece (m)][to_sq (m)]
145- + (*counterMoveHistory)[pos.moved_piece (m)][to_sq (m)]
147+ + (*counterMoveHistory )[pos.moved_piece (m)][to_sq (m)]
146148 + (*followupMoveHistory)[pos.moved_piece (m)][to_sq (m)];
147149}
148150
0 commit comments