Skip to content

Commit

Permalink
Clear martial arts style in clear_character
Browse files Browse the repository at this point in the history
Having a martial arts style selected can cause problems for the melee
tests.  Ensure that we don't have one set.
  • Loading branch information
jbytheway committed May 2, 2020
1 parent 870dd4f commit 1c10133
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/player_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ bool player_has_item_of_type( const std::string &type )

void clear_character( player &dummy, bool debug_storage )
{
dummy.normalize(); // In particular this clears martial arts style

// Remove first worn item until there are none left.
std::list<item> temp;
while( dummy.takeoff( dummy.i_at( -2 ), &temp ) );
Expand Down

0 comments on commit 1c10133

Please sign in to comment.