diff options
Diffstat (limited to 'Museum.cpp')
-rw-r--r-- | Museum.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2,7 +2,7 @@ using namespace std; -Museum::Museum() { +Museum::Museum() : people(*this), canvas(*this) { this->worker = new std::thread(&Museum::work, this); } @@ -16,8 +16,8 @@ Museum::~Museum() { } void Museum::update() { - this->people.update(*this); - this->canvas.update(*this); + this->people.update(); + this->canvas.update(); } void Museum::work() { |