aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/misc/Modifier.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-01-13 21:14:06 +0100
committer hop311 <hop3114@gmail.com>2024-01-13 21:48:08 +0100
commit70948572ef0fb5c6dae453c410fdaedfab36741b (patch)
tree8e2f7f4de34ec3d62e55f9918ce26900c16a5d0f /src/openvic-simulation/misc/Modifier.cpp
parent046e5619277c6f3dffbb29244b4b88029da31bee (diff)
Reworked UniqueKeyRegistry template params + added support for std::deque storage
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() {