From 4ac8f856998e69684cb3465ffaead92a6a6ed9b1 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Fri, 20 Feb 2015 14:07:40 +0100 Subject: [PATCH] Fix illegal-drop fix --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 3730e07..e4e3550 100644 --- a/backend.c +++ b/backend.c @@ -5528,7 +5528,7 @@ ParseOneMove (char *move, int moveNum, ChessMove *moveType, int *fromX, int *fro /* End of code added by Tord */ case IllegalMove: /* bug or odd chess variant */ if(currentMoveString[1] == '@') { // illegal drop - *fromX = *moveType == WhiteOnMove(moveNum) ? + *fromX = WhiteOnMove(moveNum) ? (int) CharToPiece(ToUpper(currentMoveString[0])) : (int) CharToPiece(ToLower(currentMoveString[0])); goto drop; -- 1.7.0.4