diff --git a/src/billy_objects.cpp b/src/billy_objects.cpp index d094440..2beca1f 100644 --- a/src/billy_objects.cpp +++ b/src/billy_objects.cpp @@ -105,8 +105,7 @@ namespace character { return std::get_if(&node.first) != nullptr; } ); - if (const bool is_there_bow = sheet.get_objects().find(weapons::Bow) != sheet.get_objects().cend(); - count_weapons > 1 || is_there_bow) { + if (count_weapons > 1 || sheet.get_objects().find(weapons::Bow) != sheet.get_objects().cend()) { sheet.habilete.materiel -= it_dagger->second->add_materiel(sheet.get_habilete().type); } }