aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/UnitType.cpp
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2024-07-18 01:11:07 +0200
committer GitHub <noreply@github.com>2024-07-18 01:11:07 +0200
commit93d095ba30747c7158882668577c854be7ea39a1 (patch)
tree705200d9b2319807a17a3e2cbff71b73071b8f93 /src/openvic-simulation/military/UnitType.cpp
parent2d111ea003e975ea1adbcd7e4d903f760f1daa07 (diff)
parent21bad9c3de6606f60c9ee2e8e8e065904aa15a0f (diff)
Merge pull request #172 from OpenVicProject/prefer/rvalue-refs
Use rvalue references for NodeTools
Diffstat (limited to 'src/openvic-simulation/military/UnitType.cpp')
-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);