From f9f973b51ebf4f90e6fc13ba1b5854df62f88242 Mon Sep 17 00:00:00 2001 From: Pcornat Date: Sun, 25 Jan 2026 21:33:53 +0100 Subject: [PATCH] Inline variable --- src/billy_objects.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } }