Skip to content

Commit

Permalink
Don't call clear_mutations from player constructor
Browse files Browse the repository at this point in the history
Calling it leads to a lgtm warning, because it indirectly calls a
virtual function.  And it shouldn't do anything anyway; there's no way
mutations could exist at this point in the constructor.
  • Loading branch information
jbytheway committed Apr 13, 2020
1 parent 101a8b9 commit 283762c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ player::player()
next_expected_position = cata::nullopt;
death_drops = true;

clear_mutations();

nv_cached = false;
volume = 0;

Expand Down

0 comments on commit 283762c

Please sign in to comment.