aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/misc/Modifier.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/misc/Modifier.hpp')
-rw-r--r--src/openvic-simulation/misc/Modifier.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/openvic-simulation/misc/Modifier.hpp b/src/openvic-simulation/misc/Modifier.hpp
index 798b01d..58b335d 100644
--- a/src/openvic-simulation/misc/Modifier.hpp
+++ b/src/openvic-simulation/misc/Modifier.hpp
@@ -74,7 +74,7 @@ namespace OpenVic {
const icon_t PROPERTY(icon);
protected:
- Modifier(std::string_view new_identifier, ModifierValue&& new_values, icon_t new_icon);
+ Modifier(std::string_view new_identifier, ModifierValue&& new_values, icon_t new_icon = 0);
public:
Modifier(Modifier&&) = default;
@@ -135,8 +135,9 @@ namespace OpenVic {
);
bool register_complex_modifier(std::string_view identifier);
- static std::string
- get_flat_identifier(const std::string_view complex_modifier_identifier, const std::string_view variant_identifier);
+ static std::string get_flat_identifier(
+ std::string_view complex_modifier_identifier, std::string_view variant_identifier
+ );
bool setup_modifier_effects();