From e290161d58c98e73ea185855e79efad19cb111a2 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 8 Mar 2025 00:29:17 -0500 Subject: Added postgame detection --- src/game_data.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game_data.cpp') diff --git a/src/game_data.cpp b/src/game_data.cpp index e92e6a2..5fbd244 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp @@ -609,7 +609,7 @@ struct GameData { // Only locations for the panels are kept here. std::map> locations_by_name; - for (const Panel &panel : panels_) { + for (Panel &panel : panels_) { int room_id = panel.room; std::string room_name = rooms_[room_id].name; @@ -625,6 +625,8 @@ struct GameData { area_name = location_name.substr(0, divider_pos); section_name = location_name.substr(divider_pos + 3); } + } else { + panel.location_name = location_name; } if (fold_areas.count(area_name)) { -- cgit 1.4.1