From eada59627e782e8a1aed61e302fe3dea74bc8645 Mon Sep 17 00:00:00 2001 From: fdai7492 Date: Mon, 5 Feb 2024 06:01:39 +0000 Subject: [PATCH] bugfix, Anton Lohrey --- src/Koenig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Koenig.c b/src/Koenig.c index 838fe3b..0acb55c 100644 --- a/src/Koenig.c +++ b/src/Koenig.c @@ -262,8 +262,8 @@ bool istzugerlaubt_Koenig(char** Brett, int startX, int startY, int endX, int en void bewegeKoenig(char** Brett, int startX, int startY, int endX, int endY, Player player, Spielstatus* status) { if (istzugerlaubt_Koenig(Brett, startX, startY, endX, endY, player)) { - char Koenig = player == PLAYER_WHITE ? 'K' : 'k'; - Brett[endY][endX] = Koenig; + char koenig = player == PLAYER_WHITE ? 'K' : 'k'; + Brett[endY][endX] = koenig; Brett[startY][startX] = ' '; if (player == PLAYER_WHITE) {