X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=84f26dbf7835c08a2794313aad91560d4e6f3991;hp=3f0837d94db2f1d95843a65a6244a38df998909d;hb=8a7876d48d4360d14d918c1ff444b5d6eb0382de;hpb=7ddbcf7e87a0b0c882d8d33841bd7ae53969619d diff --git a/src/movepick.cpp b/src/movepick.cpp index 3f0837d9..84f26dbf 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -61,7 +61,7 @@ namespace { std::swap(*begin, *std::max_element(begin, end)); return begin; } -} +} // namespace /// Constructors of the MovePicker class. As arguments we pass information @@ -283,6 +283,8 @@ void MovePicker::generate_next_stage() { case EVASION: case QSEARCH_0: case QSEARCH_1: case PROBCUT: case RECAPTURE: stage = STOP; + /* Fall through */ + case STOP: end = cur + 1; // Avoid another next_phase() call return;