X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=c4eaa902e292e64cdea5858f4f9ae3318f07ec92;hp=06ea5e25d2da257d57a1668e0ed3d2c10aa6384d;hb=917944e9c5324cc9659e630570e1852270b22bd4;hpb=d9c7cad6302ddeff9f8a32a3fe66359c556a868e diff --git a/src/movepick.cpp b/src/movepick.cpp index 06ea5e25..c4eaa902 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -140,12 +140,12 @@ MovePicker::MovePicker(const Position& p, Move ttm, const HistoryStats& h, Piece } -/// stage_moves() returns a pointer to the beginning of moves array. It +/// quiet_moves() returns a pointer to the beginning of moves array. It /// is used to access already tried quiet moves when updating history. -const ExtMove* MovePicker::stage_moves() const { - assert(stage == KILLERS_S1 || stage == QUIETS_1_S1 || stage == QUIETS_2_S1); - return stage == KILLERS_S1 ? killers : moves; +const ExtMove* MovePicker::quiet_moves() const { + return stage == KILLERS_S1 ? killers + : stage == QUIETS_1_S1 || stage == QUIETS_2_S1 ? moves : NULL; }