fix incorrect (x,y) parameters for taking a piece - chess-puzzles - chess puzzle book generator
(HTM) git clone git://git.codemadness.org/chess-puzzles
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit a0e61726e8e522f6731e6eb27e18856f4fde61fb
(DIR) parent 4ccd78674dc439a488331c561af552b0b129d621
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 20 Dec 2023 20:19:38 +0100
fix incorrect (x,y) parameters for taking a piece
Diffstat:
M fen_to_svg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/fen_to_svg.c b/fen_to_svg.c
@@ -533,7 +533,7 @@ main(int argc, char *argv[])
square[0] = *s;
square[1] = *(s + 1);
squaretoxy(square, &x2, &y2);
- takepiece = getpiece(x, y);
+ takepiece = getpiece(x2, y2);
place(piece, x2, y2);
s += 2;