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) {