X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftimeman.cpp;h=8bda4f25abca4b667dbf08cbef6e5832855af632;hb=a71209868bdd8361d0607acf7725f70e9d1f2019;hp=3bc9a317d6aabfc8c31f720360b5312ddc2181a8;hpb=7a1ff6d8ff39bb9e6844d24467899d47e942486f;p=stockfish diff --git a/src/timeman.cpp b/src/timeman.cpp index 3bc9a317..8bda4f25 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -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);