about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-18 15:34:45 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-18 15:34:45 -0400
commit71124d81e8a254360c12d3c9a2a687c77b864132 (patch)
tree332053c696b4c5398d174aa073717f4ddaf6c2ac /src
parenta2b67cf27dbd41bcfa75835e36c605adfc040e40 (diff)
downloadlingo-ap-tracker-71124d81e8a254360c12d3c9a2a687c77b864132.tar.gz
lingo-ap-tracker-71124d81e8a254360c12d3c9a2a687c77b864132.tar.bz2
lingo-ap-tracker-71124d81e8a254360c12d3c9a2a687c77b864132.zip
Don't crash on subway map before connection
Diffstat (limited to 'src')
-rw-r--r--src/tracker_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tracker_state.cpp b/src/tracker_state.cpp index ccb3fbd..869f837 100644 --- a/src/tracker_state.cpp +++ b/src/tracker_state.cpp
@@ -601,5 +601,5 @@ bool IsDoorOpen(int door_id) {
601const std::map<std::string, bool>& GetDoorRequirements(int door_id) { 601const std::map<std::string, bool>& GetDoorRequirements(int door_id) {
602 std::lock_guard reachability_guard(GetState().reachability_mutex); 602 std::lock_guard reachability_guard(GetState().reachability_mutex);
603 603
604 return GetState().door_reports.at(door_id); 604 return GetState().door_reports[door_id];
605} 605}