projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Bugfix legality null move in parsing with -testLegality off
[xboard.git]
/
backend.c
diff --git
a/backend.c
b/backend.c
old mode 100755
(executable)
new mode 100644
(file)
index
b9348a9
..
4dab307
--- 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: