diff options
Diffstat (limited to 'ViewController.cpp')
-rw-r--r-- | ViewController.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ViewController.cpp b/ViewController.cpp index cafccae..269edaa 100644 --- a/ViewController.cpp +++ b/ViewController.cpp @@ -35,6 +35,7 @@ void ViewController::update_tiles(View & view) { void ViewController::update_artists(View & view) { People & people = this->museum.people; for (Artist * artist : people.get_artists()) { + if (artist == nullptr) continue; Rectangle rect = { .x = static_cast<unsigned int>(artist->data.x * scale), .y = static_cast<unsigned int>(artist->data.y * scale), |