Verified Commit 66d61331 authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye 🌳
Browse files

Make operator== works

parent a3437fa3
Pipeline #79744 passed with stage
in 16 seconds
......@@ -135,7 +135,7 @@ Reseau& Reseau::operator=(const Reseau& init_grille) {
bool Reseau::operator==(const Reseau&r){
if (static_cast<int>(hauteur) != r.getHauteur() || static_cast<int>(largeur) != r.getLargeur()) return false;
for(unsigned int i=0; hauteur; i++)
for(unsigned int i=0; i<hauteur; i++)
for(unsigned int j=0; j<largeur; j++)
if (reseau[i][j].getIndEtat() != r.getReseau()[i][j].getIndEtat()) return false;
return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment