aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/misc/Modifier.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-01-14 12:27:56 +0100
committer GitHub <noreply@github.com>2024-01-14 12:27:56 +0100
commit2fcc7ccd409701f6bad343e57afe74bd05246b68 (patch)
tree8e2f7f4de34ec3d62e55f9918ce26900c16a5d0f /src/openvic-simulation/misc/Modifier.cpp
parent046e5619277c6f3dffbb29244b4b88029da31bee (diff)
parent70948572ef0fb5c6dae453c410fdaedfab36741b (diff)
Merge pull request #129 from OpenVicProject/registry-template-fun
Reworked `UniqueKeyRegistry` template params
Diffstat (limited to 'src/openvic-simulation/misc/Modifier.cpp')
-rw-r--r--src/openvic-simulation/misc/Modifier.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/openvic-simulation/misc/Modifier.cpp b/src/openvic-simulation/misc/Modifier.cpp
index 8abafe3..b0dc1cf 100644
--- a/src/openvic-simulation/misc/Modifier.cpp
+++ b/src/openvic-simulation/misc/Modifier.cpp
@@ -98,9 +98,7 @@ bool ModifierManager::add_modifier_effect(std::string_view identifier, bool posi
Logger::error("Invalid modifier effect identifier - empty!");
return false;
}
- return modifier_effects.add_item(
- std::make_unique<ModifierEffect>(std::move(identifier), std::move(positive_good), std::move(format))
- );
+ return modifier_effects.add_item({ std::move(identifier), positive_good, format });
}
bool ModifierManager::setup_modifier_effects() {