From 941d11f411a4d4c0f6edcc1a25010b8a60dad052 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 8 Jan 2010 09:21:04 +0100 Subject: [PATCH] Bugfix legality null move in parsing with -testLegality off The pointers were compared, in stead of the values. Also in stead of rejecting null moves with legality testing off, it rejected moves on the main diagonal. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index b9348a9..4dab307 100644 --- a/backend.c +++ b/backend.c @@ -4349,7 +4349,7 @@ ParseOneMove(move, moveNum, moveType, fromX, fromY, toX, toY, promoChar) if (appData.testLegality) { return (*moveType != IllegalMove); } else { - return !(fromX == fromY && toX == toY); + return !(*fromX == *toX && *fromY == *toY); } case WhiteDrop: -- 1.7.0.4