diff --git a/src/gamestate.cpp b/src/gamestate.cpp index 5912a85..13e56e4 100644 --- a/src/gamestate.cpp +++ b/src/gamestate.cpp @@ -1,19 +1,15 @@ #include "gamestate.h" #include #include +#include #include #include -GameState::GameState(QObject* parent, bool preDealCards) : QObject{parent} { +GameState::GameState(QObject* parent, bool preDealCards) : QObject{parent}, m_columns(7), m_foundation(4), m_gameWon(false) { assert(connect(this, &GameState::foundationChanged, this, &GameState::onFoundationChanged)); - m_foundation.resize(4); - m_columns.resize(7); - m_gameWon = false; - - if (preDealCards) { + if (preDealCards) dealCards(); - } } GameState::~GameState() {