From 66226db07d3702cc1c61498ce3fbce3d366b2488 Mon Sep 17 00:00:00 2001 From: Joel Machens Date: Sun, 12 Nov 2023 14:41:34 -0600 Subject: Added CountryInstance & Country History Apply Func --- src/openvic-simulation/map/Province.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/openvic-simulation/map') 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(); -- cgit v1.2.3-56-ga3b1