From 94d67acbeacc630d871c22291fffae380e98b7fc Mon Sep 17 00:00:00 2001 From: fdai7037 Date: Wed, 8 Feb 2023 20:51:01 +0100 Subject: [PATCH] Die Fehler in der clearField-Methode behoben --- src/Paper-Bin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index aaf664c..7b7b483 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -171,9 +171,9 @@ void getStartPosition() void clearField() { - for (int i = 0; i <= fieldWidth; i++) + for (int i = 0; i < fieldWidth; i++) { - for (int j = 0; j <= fieldHeigth; j++) + for (int j = 0; j < fieldHeigth; j++) { field[i][j] = ' '; }