From b3c3b6b7d8d1392ef6d8a8091556d4276751cd87 Mon Sep 17 00:00:00 2001 From: RenechCDDA <84619419+RenechCDDA@users.noreply.github.com> Date: Mon, 4 Mar 2024 10:34:23 -0500 Subject: [PATCH] Better error reporting for missions --- src/avatar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/avatar.cpp b/src/avatar.cpp index 457bab30ea4fd..9e70d48f05019 100644 --- a/src/avatar.cpp +++ b/src/avatar.cpp @@ -338,7 +338,7 @@ void avatar::set_active_mission( mission &cur_mission ) { const auto iter = std::find( active_missions.begin(), active_missions.end(), &cur_mission ); if( iter == active_missions.end() ) { - debugmsg( "new active mission %d is not in the active_missions list", cur_mission.get_id() ); + debugmsg( "new active mission %d is not in the active_missions list", cur_mission.mission_id() ); } else { active_mission = &cur_mission; } @@ -366,7 +366,7 @@ void avatar::on_mission_finished( mission &cur_mission ) } const auto iter = std::find( active_missions.begin(), active_missions.end(), &cur_mission ); if( iter == active_missions.end() ) { - debugmsg( "completed mission %d was not in the active_missions list", cur_mission.get_id() ); + debugmsg( "completed mission %d was not in the active_missions list", cur_mission.mission_id() ); } else { active_missions.erase( iter ); } @@ -394,7 +394,7 @@ void avatar::remove_active_mission( mission &cur_mission ) cur_mission.remove_active_world_mission( cur_mission ); const auto iter = std::find( active_missions.begin(), active_missions.end(), &cur_mission ); if( iter == active_missions.end() ) { - debugmsg( "removed mission %d was not in the active_missions list", cur_mission.get_id() ); + debugmsg( "removed mission %d was not in the active_missions list", cur_mission.mission_id() ); } else { active_missions.erase( iter ); }