]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Use st->gamePly to store fullMoves
[stockfish] / src / search.cpp
index aec6434553a8c82f48908fad4183ed20ea50121d..29f573851186dda19a072f32127bc3418ec125a1 100644 (file)
@@ -393,7 +393,7 @@ bool think(Position& pos, const SearchLimits& limits, Move searchMoves[]) {
   NodesSincePoll = 0;
   current_search_time(get_system_time());
   Limits = limits;
-  TimeMgr.init(Limits, pos.startpos_ply_counter());
+  TimeMgr.init(Limits, pos.game_ply());
 
   // Set output steram in normal or chess960 mode
   cout << set960(pos.is_chess960());