From 2b3cf6e61d66afd3d865673af4108e8c522f5299 Mon Sep 17 00:00:00 2001 From: thmaillarb Date: Mon, 29 Nov 2021 11:39:24 +0100 Subject: [PATCH] Fixed compilations errors in Board.c --- Pontu/src/model/Board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pontu/src/model/Board.c b/Pontu/src/model/Board.c index 4b753f9..1b2b224 100644 --- a/Pontu/src/model/Board.c +++ b/Pontu/src/model/Board.c @@ -2,11 +2,11 @@ Board newBoard(int nbPlayers) { Board board; - int nbPiecesPerPlayer = (nbPlayer == 4) ? 2 : 3; + int nbPiecesPerPlayer = (nbPlayers == 4) ? 2 : 3; int pieceIndex = 0; // Init pieces - for (int player_i = 0; i < nbPlayers; player_i++) { + for (int player_i = 0; player_i < nbPlayers; player_i++) { for (int piece_i = 0; i < nbPiecesPerPlayer; piece_i++) { board.arrPieces[pieceIndex] = newPiece(player_i); pieceIndex++;