aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--People.cpp1
-rw-r--r--Tile.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/People.cpp b/People.cpp
index 7c1a242..c60e5a1 100644
--- a/People.cpp
+++ b/People.cpp
@@ -17,6 +17,7 @@ People::~People() {
}
void People::add_artist(ArtistData data) {
+ if (this->artists.size() > 30e3) return;
this->artists.push_back(new Artist(this->museum, data));
}
diff --git a/Tile.h b/Tile.h
index 4807022..3f56313 100644
--- a/Tile.h
+++ b/Tile.h
@@ -13,8 +13,8 @@ public:
Tile(Museum & museum, TileData data);
public:
- TileData data = { 0 };
- Color color = { 0 };
+ TileData data;
+ Color color;
std::unique_ptr<TileBehaviorStrategy> behavior = nullptr;
unsigned int x = 0;