aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/economy/production/ResourceGatheringOperation.cpp
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-09-22 10:48:18 +0200
committer wvpm <24685035+wvpm@users.noreply.github.com>2024-09-22 10:48:18 +0200
commitea9b695022d197d918f1bb4292a0f424018dad37 (patch)
tree15d46970d136b08da9adf53a86e54fa97675cab2 /src/openvic-simulation/economy/production/ResourceGatheringOperation.cpp
parent61ccb748627a3faeec282f53f746045d1a695517 (diff)
Map province history rgo to production type for province instance
Diffstat (limited to 'src/openvic-simulation/economy/production/ResourceGatheringOperation.cpp')
-rw-r--r--src/openvic-simulation/economy/production/ResourceGatheringOperation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/economy/production/ResourceGatheringOperation.cpp b/src/openvic-simulation/economy/production/ResourceGatheringOperation.cpp
index 9bf6f49..92bf921 100644
--- a/src/openvic-simulation/economy/production/ResourceGatheringOperation.cpp
+++ b/src/openvic-simulation/economy/production/ResourceGatheringOperation.cpp
@@ -3,7 +3,7 @@
using namespace OpenVic;
ResourceGatheringOperation::ResourceGatheringOperation(
- ProductionType const& new_production_type,
+ ProductionType const* new_production_type,
fixed_point_t new_size_multiplier,
fixed_point_t new_revenue_yesterday,
fixed_point_t new_output_quantity_yesterday,
@@ -17,5 +17,5 @@ ResourceGatheringOperation::ResourceGatheringOperation(
employees { std::move(new_employees) } {}
ResourceGatheringOperation::ResourceGatheringOperation(
- ProductionType const& new_production_type, fixed_point_t new_size_multiplier
+ ProductionType const* new_production_type, fixed_point_t new_size_multiplier
) : ResourceGatheringOperation { new_production_type, new_size_multiplier, 0, 0, 0, {} } {}