diff --git a/GPA675Lab1GOL/GOLTeamH.cpp b/GPA675Lab1GOL/GOLTeamH.cpp index 88282fc..9689f93 100644 --- a/GPA675Lab1GOL/GOLTeamH.cpp +++ b/GPA675Lab1GOL/GOLTeamH.cpp @@ -338,6 +338,10 @@ bool GOLTeamH::setFromPattern(std::string const& pattern) //! \param color La nouvelle couleur de l'état. void GOLTeamH::setSolidColor(State state, Color const& color) { + if (state == State::alive) + mAliveColor = color; + else + mDeadColor = color; }