Skip to content

Commit

Permalink
Better error reporting for missions
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA committed Mar 4, 2024
1 parent 9eaa5d4 commit b3c3b6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/avatar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 );
}
Expand Down Expand Up @@ -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 );
}
Expand Down

0 comments on commit b3c3b6b

Please sign in to comment.