summaryrefslogtreecommitdiff
path: root/src/root.c
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-10-07 15:01:59 -0700
committerScott Gasch <[email protected]>2026-10-07 15:01:59 -0700
commit73b4afb12abf7cc442831dea42b41b63a2ce07be (patch)
tree4200cf56ad007484ce3d5734f91e4ebf9055a947 /src/root.c
parente5d20411a389fbabca6d9ec36262c1a1f72ad2cb (diff)
Play EGTB move at root even when 'cursed'.
Diffstat (limited to 'src/root.c')
-rw-r--r--src/root.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/root.c b/src/root.c
index 8fcace7..e9e82d4 100644
--- a/src/root.c
+++ b/src/root.c
@@ -1411,13 +1411,13 @@ Return value:
// See if we are sitting at a checkmate or stalemate position; no
// sense searching if so.
//
- ret = _DetectPreMoveTerminalStates(ctx,
- fInCheck,
+ ret = _DetectPreMoveTerminalStates(ctx,
+ fInCheck,
&mv);
if (ret.eResult != RESULT_IN_PROGRESS) {
goto end;
}
-
+
// Game still in progress but only one legal move available?
if (mv.uMove != 0) {
ctx->mvRootMove = mv;