ref: c4a31fe70f93eb6f64ca94a52305855c5493b94d
parent: 7a1b95f35a97d9dc73ce866c93ef7c0bf5389746
author: zamfofex <zamfofex@twdb.moe>
date: Sat Nov 30 15:57:26 EST 2024
make small fixes
--- a/search.c
+++ b/search.c
@@ -328,7 +328,7 @@
for (i = 0 ; i < data->root->node.count ; i++) {if (data->root->node.children[i].ignored) count--;
}
- if (count == 1) break;
+ if (count <= 1) break;
moonfish_search(&data->root->node, &data->root->chess, 0x1000);
}
@@ -412,7 +412,7 @@
root->chess = *chess;
- if (i == root->node.count) {+ if (i >= root->node.count) {moonfish_discard(&root->node);
moonfish_node(&root->node);
return;
--
⑨