Skip to content

Commit

Permalink
Profession wear conflicts go into inventory instead of silently disap…
Browse files Browse the repository at this point in the history
…pearing (#64168)
  • Loading branch information
jesse-r-s-hines authored Mar 13, 2023
1 parent a49110b commit 82cabd9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/newcharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,11 @@ void avatar::add_profession_items()
inv->push_back( it );
}
} else if( it.is_armor() ) {
// TODO: debugmsg if wearing fails
wear_item( it, false, false );
if( can_wear( it ).success() ) {
wear_item( it, false, false );
} else {
inv->push_back( it );
}
} else {
inv->push_back( it );
}
Expand Down

0 comments on commit 82cabd9

Please sign in to comment.