]> git.sesse.net Git - stockfish/blobdiff - src/timeman.cpp
Rewrite unstoppable pawns evaluation
[stockfish] / src / timeman.cpp
index 3bc9a317d6aabfc8c31f720360b5312ddc2181a8..8bda4f25abca4b667dbf08cbef6e5832855af632 100644 (file)
@@ -155,7 +155,7 @@ namespace {
     int thisMoveImportance = move_importance(currentPly) * slowMover / 100;
     int otherMovesImportance = 0;
 
-    for (int i = 1; i < movesToGo; i++)
+    for (int i = 1; i < movesToGo; ++i)
         otherMovesImportance += move_importance(currentPly + 2 * i);
 
     float ratio1 = (TMaxRatio * thisMoveImportance) / float(TMaxRatio * thisMoveImportance + otherMovesImportance);