From 283762c0ee106e41115e0ea6011760a16eb4dd20 Mon Sep 17 00:00:00 2001 From: John Bytheway Date: Mon, 13 Apr 2020 19:44:29 -0400 Subject: [PATCH] Don't call clear_mutations from player constructor 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. --- src/player.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/player.cpp b/src/player.cpp index ff18f99da3e36..d71995589ea78 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -290,8 +290,6 @@ player::player() next_expected_position = cata::nullopt; death_drops = true; - clear_mutations(); - nv_cached = false; volume = 0;