diff options
-rw-r--r-- | People.cpp | 1 | ||||
-rw-r--r-- | Tile.h | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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)); } @@ -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; |