X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftimeman.cpp;h=34dbcc6eb13598b0fdf57d4e37f6bdd7dba6c29b;hb=7f142d68179919a507204e7980fff4f79648dbbc;hp=62b7eb11432563d4f0f8471dfc904d772c68fd78;hpb=bd1c3ed7e32d3df0ceb29cb6959599e3cac2057c;p=stockfish diff --git a/src/timeman.cpp b/src/timeman.cpp index 62b7eb11..34dbcc6e 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -114,7 +114,7 @@ void TimeManager::init(const Search::LimitsType& limits, int currentPly, Color u // We calculate optimum time usage for different hypothetic "moves to go"-values and choose the // minimum of calculated search time values. Usually the greatest hypMTG gives the minimum values. - for (hypMTG = 1; hypMTG <= (limits.movestogo ? std::min(limits.movestogo, MoveHorizon) : MoveHorizon); hypMTG++) + for (hypMTG = 1; hypMTG <= (limits.movestogo ? std::min(limits.movestogo, MoveHorizon) : MoveHorizon); ++hypMTG) { // Calculate thinking time for hypothetic "moves to go"-value hypMyTime = limits.time[us]