summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rwxr-xr-xsrc/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 1bcfca9..9b24f0a 100755
--- a/src/util.c
+++ b/src/util.c
@@ -1104,6 +1104,12 @@ Return value:
ASSERT(ctx->sPlyInfo[v].PV[u+1].uMove == 0);
break;
}
+ else if (mv.uMove == MATEMOVE.uMove)
+ {
+ strncat(buf, "<#>", ARRAY_LENGTH(buf) - strlen(buf) - 1);
+ ASSERT(ctx->sPlyInfo[v].PV[u+1].uMove == 0);
+ break;
+ }
else
{
strncat(buf, MoveToSan(mv, &ctx->sPosition),