From 6676e8fda6c58a93ae9d5cea0c4ad622a77305be Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 9 Jun 2024 23:50:54 -0400 Subject: Fix panels game data error reporting --- src/game_data.cpp | 12 ++++-------- 1 file 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 { ids_config["panel_doors"][rooms_[room_id].name][panel_door_name] .as(); } else { - std::ostringstream errmsg; - errmsg << "Missing AP item ID for panel door " - << rooms_[room_id].name << " - " << panel_door_name; - TrackerLog(errmsg.str()); + wxLogError("Missing AP item ID for panel door %s - %s", + rooms_[room_id].name, panel_door_name); } if (panel_door_it.second["panel_group"]) { @@ -470,10 +468,8 @@ struct GameData { panel_doors_[panel_door_id].group_ap_item_id = ids_config["panel_groups"][panel_group].as(); } else { - std::ostringstream errmsg; - errmsg << "Missing AP item ID for panel door group " - << panel_group; - TrackerLog(errmsg.str()); + wxLogError("Missing AP item ID for panel door group %s", + panel_group); } } } -- cgit 1.4.1