X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmove.h;h=d70bb81e77b1e4417633994175c896b94e243f11;hp=4e86a68908f6e2a68bb31254935426e3e3e4327f;hb=8e96149c8cc6c3359484b2874b022932f1499927;hpb=3c085775d7ce072000f1b5c09921127489806efc diff --git a/src/move.h b/src/move.h index 4e86a689..d70bb81e 100644 --- a/src/move.h +++ b/src/move.h @@ -73,7 +73,7 @@ inline void sort_moves(T* firstMove, T* lastMove) T *cur, *p, *d; if (firstMove != lastMove) - for (cur = firstMove; ++cur != lastMove; ) + for (cur = firstMove + 1; cur != lastMove; cur++) { p = d = cur; value = *p--;