about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game_data.cpp5
1 files changed, 5 insertions, 0 deletions
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) {
783} 783}
784 784
785int GD_GetSubwayItemForPainting(const std::string& painting_id) { 785int GD_GetSubwayItemForPainting(const std::string& painting_id) {
786#ifndef NDEBUG
787 if (!GetState().subway_item_by_painting_.count(painting_id)) {
788 wxLogError("No subway item for painting %s", painting_id);
789 }
790#endif
786 return GetState().subway_item_by_painting_.at(painting_id); 791 return GetState().subway_item_by_painting_.at(painting_id);
787} 792}
788 793