diff options
author | Hop311 <hop3114@gmail.com> | 2023-07-26 22:37:25 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-07-26 22:37:25 +0200 |
commit | 532c9be36ca03ee13c92ca7d895aaf5b42eeb034 (patch) | |
tree | a91587787bf6742168279ac41f77b9ebabe0dffe /src/openvic/map/Building.cpp | |
parent | 0422f9fbb06e911a7cf6da11045b47cdda0d2d06 (diff) |
Added pops to provinces
Diffstat (limited to 'src/openvic/map/Building.cpp')
-rw-r--r-- | src/openvic/map/Building.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic/map/Building.cpp b/src/openvic/map/Building.cpp index 07cbac9..81532c4 100644 --- a/src/openvic/map/Building.cpp +++ b/src/openvic/map/Building.cpp @@ -127,7 +127,7 @@ return_t BuildingManager::generate_province_buildings(Province& province) const if (province.is_water()) return SUCCESS; return_t ret = SUCCESS; for (BuildingType const& type : building_types.get_items()) - if (province.add_building(type) != SUCCESS) ret = FAILURE; + if (province.add_building({ type }) != SUCCESS) ret = FAILURE; province.lock_buildings(); return ret; } |