diff --git a/tests/enchantments_test.cpp b/tests/enchantments_test.cpp index f32344ad0b48d..4ae9d43eacbdf 100644 --- a/tests/enchantments_test.cpp +++ b/tests/enchantments_test.cpp @@ -215,7 +215,7 @@ static int test_melee_attack_attack_speed( Character &guy ) while( i != 10 ) { prev_attack = guy.get_moves(); - guy.melee_attack_abstract( guy, false, matec_id( "" ) ); + guy.melee_attack_abstract( pseudo_debug_mon, false, matec_id( "" ) ); add_msg( "attack %i: attack cost: %i, total amount of moves: %i", i, prev_attack - guy.get_moves(), guy.get_moves() ); guy.set_stamina( guy.get_stamina_max() ); //Reset reset! @@ -271,7 +271,7 @@ static int test_melee_attack_attack_stamina( Character &guy ) while( i != 10 ) { stamina_prev = guy.get_stamina(); - guy.melee_attack_abstract( guy, false, matec_id( "" ) ); + guy.melee_attack_abstract( pseudo_debug_mon, false, matec_id( "" ) ); add_msg( "attack %i: stamina cost: %i, current amount of stamina: %i", i, stamina_prev - guy.get_stamina(), guy.get_stamina() );