]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Unify black and white code in generate_move_if_legal()
[stockfish] / src / uci.cpp
index bd1432f71d8fd906247f526051aaa1975406839e..6862a5e84dc6cac3ef7f2efaefc8681929128f56 100644 (file)
@@ -319,8 +319,7 @@ namespace {
     if (moveTime)
         infinite = true;  // HACK
 
-    think(RootPosition, infinite, ponder, time[RootPosition.side_to_move()],
-          inc[RootPosition.side_to_move()], movesToGo, depth, nodes, moveTime,
-          searchMoves);
+    think(RootPosition, infinite, ponder, RootPosition.side_to_move(), time,
+          inc, movesToGo, depth, nodes, moveTime, searchMoves);
   }
 }