From 32b2faee04f2fc560bdc8f1c1f81fe6bb7fdaae5 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 3 Jul 2012 17:21:53 +0200 Subject: [PATCH] Fix bug in Edit Position Due to = in stead of == the variant was always set to S-Chess in EditPositionDone(). --- backend.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend.c b/backend.c index 46bb39d..d3b26b9 100644 --- a/backend.c +++ b/backend.c @@ -13947,7 +13947,7 @@ EditPositionDone (Boolean fakeRights) boards[0][CASTLING][4] = boards[0][BOARD_HEIGHT-1][BOARD_LEFT] == BlackRook ? BOARD_LEFT : NoRights; boards[0][CASTLING][3] = boards[0][BOARD_HEIGHT-1][BOARD_RGHT-1] == BlackRook ? BOARD_RGHT-1 : NoRights; } else boards[0][CASTLING][5] = NoRights; - if(gameInfo.variant = VariantSChess) { + if(gameInfo.variant == VariantSChess) { int i; for(i=BOARD_LEFT; i=BOARD_LEFT+q && j; i--) if((boards[move][0][i] != WhiteKing || k+q == 0) && @@ -16692,7 +16692,7 @@ PositionToFEN (int move, char *overrideCastling) boards[move][CASTLING][5] != NoRights ) k = 1, *p++ = 'k'; q = (boards[move][CASTLING][4] == BOARD_LEFT && boards[move][CASTLING][5] != NoRights ); - if(gameInfo.variant = VariantSChess) { + if(gameInfo.variant == VariantSChess) { for(i=j=0; i=BOARD_LEFT+q && j; i--) if((boards[move][BOARD_HEIGHT-1][i] != BlackKing || k+q == 0) && -- 1.7.0.4