From c4f08b23bfc6832e3158e2f15fd6bfd15c04eab6 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 13 Oct 2024 19:13:43 +0200 Subject: WIP --- People.cpp | 1 + Tile.h | 4 ++-- 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 behavior = nullptr; unsigned int x = 0; -- cgit v1.2.3