diff --git a/Minesweeper/Core/Src/spielfeld.c b/Minesweeper/Core/Src/spielfeld.c index cb6c7e3..700643a 100644 --- a/Minesweeper/Core/Src/spielfeld.c +++ b/Minesweeper/Core/Src/spielfeld.c @@ -200,7 +200,8 @@ int** revealCell(int** gameBoard, int** hiddenGameBoard, int size, int row, int } void setFlag(int** hiddenGameBoard, int row, int col) { - if (hiddenGameBoard[row][col] = FLAG_CELL){ + if (hiddenGameBoard[row][col] == FLAG_CELL) + { hiddenGameBoard[row][col] = HIDDEN_CELL; } else{