about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-06-09 23:50:54 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-06-09 23:50:54 -0400
commit6676e8fda6c58a93ae9d5cea0c4ad622a77305be (patch)
treefa4f475f8bc64f4fdb183b71bf08fbd8350dc554
parent63d11be5961c0a5647af8f2c411aa2f3ca58e5b6 (diff)
downloadlingo-ap-tracker-6676e8fda6c58a93ae9d5cea0c4ad622a77305be.tar.gz
lingo-ap-tracker-6676e8fda6c58a93ae9d5cea0c4ad622a77305be.tar.bz2
lingo-ap-tracker-6676e8fda6c58a93ae9d5cea0c4ad622a77305be.zip
Fix panels game data error reporting
-rw-r--r--src/game_data.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index 1ccf511..759eb0c 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -455,10 +455,8 @@ struct GameData {
455 ids_config["panel_doors"][rooms_[room_id].name][panel_door_name] 455 ids_config["panel_doors"][rooms_[room_id].name][panel_door_name]
456 .as<int>(); 456 .as<int>();
457 } else { 457 } else {
458 std::ostringstream errmsg; 458 wxLogError("Missing AP item ID for panel door %s - %s",
459 errmsg << "Missing AP item ID for panel door " 459 rooms_[room_id].name, panel_door_name);
460 << rooms_[room_id].name << " - " << panel_door_name;
461 TrackerLog(errmsg.str());
462 } 460 }
463 461
464 if (panel_door_it.second["panel_group"]) { 462 if (panel_door_it.second["panel_group"]) {
@@ -470,10 +468,8 @@ struct GameData {
470 panel_doors_[panel_door_id].group_ap_item_id = 468 panel_doors_[panel_door_id].group_ap_item_id =
471 ids_config["panel_groups"][panel_group].as<int>(); 469 ids_config["panel_groups"][panel_group].as<int>();
472 } else { 470 } else {
473 std::ostringstream errmsg; 471 wxLogError("Missing AP item ID for panel door group %s",
474 errmsg << "Missing AP item ID for panel door group " 472 panel_group);
475 << panel_group;
476 TrackerLog(errmsg.str());
477 } 473 }
478 } 474 }
479 } 475 }