diff options
author | Joel Machens <ajmach6@gmail.com> | 2023-11-12 21:41:34 +0100 |
---|---|---|
committer | Joel Machens <ajmach6@gmail.com> | 2023-11-13 02:10:47 +0100 |
commit | 66226db07d3702cc1c61498ce3fbce3d366b2488 (patch) | |
tree | 768e068cd0fbe02f1eef1bced2471d0cda920c08 /src/openvic-simulation/map | |
parent | c8983f5cda0b396b76c9d1491cf4c8ff5997d420 (diff) |
Added CountryInstance & Country History Apply Func
Diffstat (limited to 'src/openvic-simulation/map')
-rw-r--r-- | src/openvic-simulation/map/Province.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/map/Province.cpp b/src/openvic-simulation/map/Province.cpp index 099ba9b..4b76210 100644 --- a/src/openvic-simulation/map/Province.cpp +++ b/src/openvic-simulation/map/Province.cpp @@ -228,7 +228,7 @@ void Province::apply_history_to_province(ProvinceHistoryMap const& history, Date reset_buildings(); - for (const auto& entry : entries) { + for (ProvinceHistoryEntry const* entry : entries) { if (entry->get_life_rating()) life_rating = *entry->get_life_rating(); if (entry->get_colonial()) colony_status = *entry->get_colonial(); if (entry->get_rgo()) rgo = *entry->get_rgo(); |