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

Add automaton reset on new grid load

parent 55bac498
...@@ -314,6 +314,7 @@ void AutoCell::initialiserGrille(){ ...@@ -314,6 +314,7 @@ void AutoCell::initialiserGrille(){
} }
this->afficherGrille(&grille); this->afficherGrille(&grille);
Automate::getInstance().reset();
Automate::getInstance().setReseauInit(grille); Automate::getInstance().setReseauInit(grille);
Automate::getInstance().initialiserBuffer(); Automate::getInstance().initialiserBuffer();
}; };
......
Markdown is supported
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