diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-10 18:11:06 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-10 18:11:06 -0400 |
commit | 3b3c3ca4ed98c8d1e884f6c9f8f63d7b7c76e37b (patch) | |
tree | 2bfd63e64c60dabfd29094934a93a1ed04f2dfd1 /src/game_data.cpp | |
parent | 14d075e02007aeb53dbadd6c629564ee467cd7b2 (diff) | |
download | lingo-ap-tracker-3b3c3ca4ed98c8d1e884f6c9f8f63d7b7c76e37b.tar.gz lingo-ap-tracker-3b3c3ca4ed98c8d1e884f6c9f8f63d7b7c76e37b.tar.bz2 lingo-ap-tracker-3b3c3ca4ed98c8d1e884f6c9f8f63d7b7c76e37b.zip |
Fixed subway map when eye_painting is mapped
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r-- | src/game_data.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index 6f1a2e4..85f7f51 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp | |||
@@ -839,13 +839,11 @@ const SubwayItem &GD_GetSubwayItem(int id) { | |||
839 | return GetState().subway_items_.at(id); | 839 | return GetState().subway_items_.at(id); |
840 | } | 840 | } |
841 | 841 | ||
842 | int GD_GetSubwayItemForPainting(const std::string &painting_id) { | 842 | std::optional<int> GD_GetSubwayItemForPainting(const std::string &painting_id) { |
843 | #ifndef NDEBUG | 843 | if (GetState().subway_item_by_painting_.count(painting_id)) { |
844 | if (!GetState().subway_item_by_painting_.count(painting_id)) { | 844 | return GetState().subway_item_by_painting_.at(painting_id); |
845 | wxLogError("No subway item for painting %s", painting_id); | ||
846 | } | 845 | } |
847 | #endif | 846 | return std::nullopt; |
848 | return GetState().subway_item_by_painting_.at(painting_id); | ||
849 | } | 847 | } |
850 | 848 | ||
851 | int GD_GetSubwayItemForSunwarp(const SubwaySunwarp &sunwarp) { | 849 | int GD_GetSubwayItemForSunwarp(const SubwaySunwarp &sunwarp) { |