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,16 +101,11 @@ void Network::load(const std::string& rootDirectory, std::string evalfilePath) {
|
||||
if (std::string(evalFile.current) != evalfilePath)
|
||||
{
|
||||
if (directory != "<internal>")
|
||||
{
|
||||
load_user_net(directory, evalfilePath);
|
||||
}
|
||||
|
||||
if (directory == "<internal>" && evalfilePath == std::string(evalFile.defaultName))
|
||||
{
|
||||
else if (evalfilePath == std::string(evalFile.defaultName))
|
||||
load_internal();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user