From 636d23430bddf8295afeb55381db8d1f65cf4b38 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 15 May 2024 13:27:33 -0400 Subject: Fixed art gallery painting --- src/game_data.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/game_data.cpp b/src/game_data.cpp index de47ba4..7c9564b 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp @@ -783,6 +783,11 @@ const SubwayItem &GD_GetSubwayItem(int id) { } int GD_GetSubwayItemForPainting(const std::string& painting_id) { +#ifndef NDEBUG + if (!GetState().subway_item_by_painting_.count(painting_id)) { + wxLogError("No subway item for painting %s", painting_id); + } +#endif return GetState().subway_item_by_painting_.at(painting_id); } -- cgit 1.4.1