Account for gamePly after each move
[stockfish] / src / search.cpp
index 74dc9e29bdb4f2fafa53eb95a1b208413d2bfa45..b9cbb956d823b9cb7bb30605bdd3524f46d608c2 100644 (file)
@@ -182,7 +182,7 @@ void Search::think() {
   static PolyglotBook book; // Defined static to initialize the PRNG only once
 
   RootColor = RootPos.side_to_move();
-  TimeMgr.init(Limits, RootPos.startpos_ply_counter(), RootColor);
+  TimeMgr.init(Limits, RootPos.game_ply(), RootColor);
 
   if (RootMoves.empty())
   {