diff options
Diffstat (limited to 'src/bot.cpp')
| -rw-r--r-- | src/bot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bot.cpp b/src/bot.cpp index cffa202..3567ef3 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -254,7 +254,7 @@ Move GetBestMove(Game *b, const int maxDepth) { Nodes = 0; int actualDepth = maxDepth > 0 ? maxDepth : MAXIMUM_DEPTH; - bool usingDefaultDepth = maxDepth > 0; + bool usingDefaultDepth = maxDepth < 0; auto legalMoves = GetSortedLegalMoves(b, true, nullptr); if (legalMoves.empty()) { assert(false && "GetBestMove called with no legal moves"); |
