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] = ' '; }