Skip to content

Commit

Permalink
Reset activity level in clear_character
Browse files Browse the repository at this point in the history
Not doing so affects the starvation tests.
  • Loading branch information
jbytheway committed Apr 13, 2020
1 parent 8f495c3 commit bd1a8d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/player_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ void clear_character( player &dummy, bool debug_storage )
// Restore all stamina and go to walk mode
dummy.set_stamina( dummy.get_stamina_max() );
dummy.set_movement_mode( CMM_WALK );
dummy.reset_activity_level();

// Make sure we don't carry around weird effects.
dummy.clear_effects();
Expand Down

0 comments on commit bd1a8d9

Please sign in to comment.