aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Map.cpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-17 16:08:11 +0200
committer Hop311 <hop3114@gmail.com>2023-09-17 16:08:11 +0200
commit5549753a6ae909b1a65f52a1cc67ef2b5efae55a (patch)
tree5801afa7f578c830ed4a604640a485223ecd81ec /src/openvic-simulation/map/Map.cpp
parentf95902fdd85f86c10b9c300099c67312fc81f11b (diff)
Futher scaffolding for province positions loading
Diffstat (limited to 'src/openvic-simulation/map/Map.cpp')
-rw-r--r--src/openvic-simulation/map/Map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvic-simulation/map/Map.cpp b/src/openvic-simulation/map/Map.cpp
index 29bec7b..6fbdc4f 100644
--- a/src/openvic-simulation/map/Map.cpp
+++ b/src/openvic-simulation/map/Map.cpp
@@ -523,10 +523,10 @@ bool Map::load_province_definitions(std::vector<LineObject> const& lines) {
return ret;
}
-bool Map::load_province_positions(ast::NodeCPtr root) {
+bool Map::load_province_positions(BuildingManager const& building_manager, ast::NodeCPtr root) {
return expect_province_dictionary(
- [](Province& province, ast::NodeCPtr node) -> bool {
- return province.load_positions(node);
+ [&building_manager](Province& province, ast::NodeCPtr node) -> bool {
+ return province.load_positions(building_manager, node);
}
)(root);
}