From fafdad72902c9877904338a3a95d15edad9d5580 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Wed, 18 Sep 2024 21:04:00 -0400 Subject: [PATCH] Bug fix with finstring --- src/game_logic/fen_strings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game_logic/fen_strings.c b/src/game_logic/fen_strings.c index 12ef827..212a3ae 100644 --- a/src/game_logic/fen_strings.c +++ b/src/game_logic/fen_strings.c @@ -90,12 +90,12 @@ char * fen_string_get_state(void) } fen_append(' '); char options[2][2] = {{'K', 'Q'}, {'k', 'q'}}; - bool castle = true; + bool castle = false; for(int color = 0; color < 2; color++){ for(int k_q = 0; k_q < 2; k_q++){ if(state->castling_allowed[color][k_q]) { - castle = false; + castle = true; fen_append(options[color][k_q]); } }