Skip to content

Commit

Permalink
Merge pull request #38632 from jkraybill/34789
Browse files Browse the repository at this point in the history
Don't reset incomplete missions after skills training
  • Loading branch information
ZhilkinSerg authored Mar 9, 2020
2 parents ce7db7b + 57505d2 commit edfbefc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/npctalk_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,8 @@ void talk_function::start_training( npc &p )
}

mission *miss = p.chatbin.mission_selected;
if( miss != nullptr && miss->get_assigned_player_id() == g->u.getID() ) {
if( miss != nullptr && miss->get_assigned_player_id() == g->u.getID() &&
miss->is_complete( g->u.getID() ) ) {
clear_mission( p );
} else if( !npc_trading::pay_npc( p, cost ) ) {
return;
Expand Down

0 comments on commit edfbefc

Please sign in to comment.