about summary refs log tree commit diff stats
path: root/src/subway_map.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-06-10 18:11:06 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-06-10 18:11:06 -0400
commit3b3c3ca4ed98c8d1e884f6c9f8f63d7b7c76e37b (patch)
tree2bfd63e64c60dabfd29094934a93a1ed04f2dfd1 /src/subway_map.cpp
parent14d075e02007aeb53dbadd6c629564ee467cd7b2 (diff)
downloadlingo-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/subway_map.cpp')
-rw-r--r--src/subway_map.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/subway_map.cpp b/src/subway_map.cpp index 408c4f0..5c99567 100644 --- a/src/subway_map.cpp +++ b/src/subway_map.cpp
@@ -147,9 +147,13 @@ void SubwayMap::UpdateIndicators() {
147 checked_paintings_.insert(painting_id); 147 checked_paintings_.insert(painting_id);
148 148
149 if (AP_GetPaintingMapping().count(painting_id)) { 149 if (AP_GetPaintingMapping().count(painting_id)) {
150 networks_.AddLink(GD_GetSubwayItemForPainting(painting_id), 150 std::optional<int> from_id = GD_GetSubwayItemForPainting(painting_id);
151 GD_GetSubwayItemForPainting( 151 std::optional<int> to_id = GD_GetSubwayItemForPainting(
152 AP_GetPaintingMapping().at(painting_id))); 152 AP_GetPaintingMapping().at(painting_id));
153
154 if (from_id && to_id) {
155 networks_.AddLink(*from_id, *to_id);
156 }
153 } 157 }
154 } 158 }
155 } 159 }