search: 最后记录不一定确切的哈希值时省略对 node->children[0] 是否非 null 的判断

This commit is contained in:
Calcitem 2019-12-05 00:55:35 +08:00
parent 39274bb704
commit 4c258d5391
1 changed files with 1 additions and 4 deletions

View File

@ -922,10 +922,7 @@ value_t AIAlgorithm::search(depth_t depth, value_t alpha, value_t beta, Node *no
#ifdef TRANSPOSITION_TABLE_ENABLE
// 记录不一定确切的哈希值
if (node->children[0])
{
TT::recordHash(node->value, depth, hashf, hash, node->children[0]->move);
}
TT::recordHash(node->value, depth, hashf, hash, node->children[0]->move);
#endif /* TRANSPOSITION_TABLE_ENABLE */
// 返回