aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2024-07-06 22:44:35 +0200
committer Spartan322 <Megacake1234@gmail.com>2024-07-17 23:44:46 +0200
commit21bad9c3de6606f60c9ee2e8e8e065904aa15a0f (patch)
tree705200d9b2319807a17a3e2cbff71b73071b8f93 /src/openvic-simulation/military
parent2d111ea003e975ea1adbcd7e4d903f760f1daa07 (diff)
Use rvalue references for NodeToolsprefer/rvalue-refs
Diffstat (limited to 'src/openvic-simulation/military')
-rw-r--r--src/openvic-simulation/military/UnitType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/military/UnitType.cpp b/src/openvic-simulation/military/UnitType.cpp
index a7769d3..7a582c8 100644
--- a/src/openvic-simulation/military/UnitType.cpp
+++ b/src/openvic-simulation/military/UnitType.cpp
@@ -201,7 +201,7 @@ bool UnitTypeManager::load_unit_type_file(
good_definition_manager.expect_good_definition_decimal_map(move_variable_callback(unit_args.supply_cost))
);
- const auto add_terrain_modifier = [&unit_args, &terrain_type_manager, &modifier_manager](
+ auto add_terrain_modifier = [&unit_args, &terrain_type_manager, &modifier_manager](
std::string_view default_key, ast::NodeCPtr default_value
) -> bool {
TerrainType const* terrain_type = terrain_type_manager.get_terrain_type_by_identifier(default_key);