mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Replace directory == "<internal>" with a simple "else"
Replace directory == "<internal>" with a simple "else" , since the previous condition was the opposite. closes https://github.com/official-stockfish/Stockfish/pull/6817 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
1cebdafc14
commit
57f3a2bfbe
@@ -101,14 +101,9 @@ void Network::load(const std::string& rootDirectory, std::string evalfilePath) {
|
|||||||
if (std::string(evalFile.current) != evalfilePath)
|
if (std::string(evalFile.current) != evalfilePath)
|
||||||
{
|
{
|
||||||
if (directory != "<internal>")
|
if (directory != "<internal>")
|
||||||
{
|
|
||||||
load_user_net(directory, evalfilePath);
|
load_user_net(directory, evalfilePath);
|
||||||
}
|
else if (evalfilePath == std::string(evalFile.defaultName))
|
||||||
|
|
||||||
if (directory == "<internal>" && evalfilePath == std::string(evalFile.defaultName))
|
|
||||||
{
|
|
||||||
load_internal();
|
load_internal();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user