From afaa1ff7eb653ae892933d8fedbf84580532cff9 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 21 Nov 2023 18:07:13 +0100 Subject: [PATCH] shadow --- src/Piece.cpp | 2 +- src/Plateau.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Piece.cpp b/src/Piece.cpp index 05ce20a..72b3eb0 100644 --- a/src/Piece.cpp +++ b/src/Piece.cpp @@ -1,6 +1,6 @@ #include "../includes/Piece.hpp" -Piece::Piece(std::string categorie) { std::cout << "pièce\n"; } +Piece::Piece(std::string cat) { std::cout << "pièce\n"; } Piece::~Piece() {} diff --git a/src/Plateau.cpp b/src/Plateau.cpp index 9fd93ab..3ed6339 100644 --- a/src/Plateau.cpp +++ b/src/Plateau.cpp @@ -1,10 +1,10 @@ #include "../includes/Plateau.hpp" -Plateau::Plateau(int taille) { - plateau = new Piece **[taille]; - for (int i = 0; i < taille; i++) { - plateau[i] = new Piece *[taille]; - for (int j = 0; j < taille; j++) { +Plateau::Plateau(int t) { + plateau = new Piece **[t]; + for (int i = 0; i < t; i++) { + plateau[i] = new Piece *[t]; + for (int j = 0; j < t; j++) { plateau[i][j] = nullptr; } }