X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=f42c0e6c312460742dd944d1765398bd2f001788;hp=c31609bbf090589f05fe5356813cc7e39444b100;hb=673bc5526fa3d352f823ad144fb521b5dc98f45c;hpb=7eb6a488ade31254151fd516aa4c94fc56b84a1f diff --git a/src/benchmark.cpp b/src/benchmark.cpp index c31609bb..f42c0e6c 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -85,6 +85,7 @@ void benchmark(istringstream& is) { if (fenFile != "default") { + fens.clear(); string fen; ifstream file(fenFile.c_str()); @@ -106,7 +107,7 @@ void benchmark(istringstream& is) { for (size_t i = 0; i < fens.size(); i++) { - Position pos(fens[i], false, 0); + Position pos(fens[i], false, NULL); cerr << "\nPosition: " << i + 1 << '/' << fens.size() << endl;