summaryrefslogtreecommitdiff
path: root/src/dynamic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynamic.c')
-rwxr-xr-xsrc/dynamic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dynamic.c b/src/dynamic.c
index 6a1dae8..a923e1a 100755
--- a/src/dynamic.c
+++ b/src/dynamic.c
@@ -461,9 +461,11 @@ Return value:
**/
{
PIECE p = ctx->sPosition.rgSquare[cSquare].pPiece;
+#ifdef DEBUG
ULONG uExpectedMover = (((ctx->uPly - uPly) & 1) ?
FLIP(ctx->sPosition.uToMove) :
ctx->sPosition.uToMove);
+#endif
ASSERT(uPly < MAX_PLY_PER_SEARCH);
ASSERT(p && IS_VALID_PIECE(p) && !IS_PAWN(p));