From 1c1013346a93feb6be93581e50391d833d608d0b Mon Sep 17 00:00:00 2001 From: John Bytheway Date: Sat, 2 May 2020 06:41:44 -0400 Subject: [PATCH] Clear martial arts style in clear_character Having a martial arts style selected can cause problems for the melee tests. Ensure that we don't have one set. --- tests/player_helpers.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/player_helpers.cpp b/tests/player_helpers.cpp index 90e45094e8a83..9d7f0208e435e 100644 --- a/tests/player_helpers.cpp +++ b/tests/player_helpers.cpp @@ -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 temp; while( dummy.takeoff( dummy.i_at( -2 ), &temp ) );