X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=ced0a051654685cbe48fb2c99662d7604de4d38f;hp=c9c37f93c7a7f709cbd1e190234f04dfec52d3d9;hb=9e4befe3f1ea324bece88aee2e97b38659411c52;hpb=6cf28d4aa733447373430708fd2c35dee4469b10 diff --git a/src/movepick.h b/src/movepick.h index c9c37f93..ced0a051 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -81,9 +81,10 @@ private: const History& H; Move ttMoves[2], killers[2]; const MovegenPhaseT* phasePtr; - int phase, movesPicked, numOfMoves, numOfBadCaptures; + int phase, movesPicked, numOfBadCaptures; bool finished; Bitboard dc, pinned; + MoveStack *curMove, *lastMove; MoveStack moves[256], badCaptures[64]; }; @@ -98,7 +99,7 @@ private: /// a single reply to check. inline int MovePicker::number_of_moves() const { - return numOfMoves; + return int(lastMove - moves); } /// MovePicker::discovered_check_candidates() returns a bitboard containing