aboutsummaryrefslogtreecommitdiff
path: root/Museum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Museum.cpp')
-rw-r--r--Museum.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Museum.cpp b/Museum.cpp
index 76931b7..361afaf 100644
--- a/Museum.cpp
+++ b/Museum.cpp
@@ -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() {