Skip to content

Commit

Permalink
clear_npcs in monster test
Browse files Browse the repository at this point in the history
After CleverRaven#30051 clear_creatures no longer clears NPCs.  Add a call to do
that in this test where it is needed.
  • Loading branch information
jbytheway committed Apr 30, 2019
1 parent 1b60b95 commit 4f59972
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/monster_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ static int moves_to_destination( const std::string &monster_type,
const tripoint &start, const tripoint &end )
{
clear_creatures();
clear_npcs();
REQUIRE( g->num_creatures() == 1 ); // the player
monster &test_monster = spawn_test_monster( monster_type, start );
// Get it riled up and give it a goal.
Expand Down

0 comments on commit 4f59972

Please sign in to comment.