depth: Fix level setting do not take effect in moving phrase (critical)

This commit is contained in:
Calcitem 2021-07-23 01:08:11 +08:00
parent dc871776aa
commit 7553d2685e
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 2 additions and 0 deletions

View File

@ -498,6 +498,8 @@ Depth get_search_depth(const Position *pos)
return (Depth)level;
}
}
} else if (pos->phase == Phase::moving) {
return (Depth)level;
}
}