From 71124d81e8a254360c12d3c9a2a687c77b864132 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 18 May 2024 15:34:45 -0400 Subject: Don't crash on subway map before connection --- src/tracker_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { const std::map& GetDoorRequirements(int door_id) { std::lock_guard reachability_guard(GetState().reachability_mutex); - return GetState().door_reports.at(door_id); + return GetState().door_reports[door_id]; } -- cgit 1.4.1