diff options
author | Hop311 <Hop3114@gmail.com> | 2024-07-04 17:33:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 17:33:40 +0200 |
commit | 88dd4ab93ca80cd677528e15043e8b6121c05562 (patch) | |
tree | 2933b65a98ef0a4b32c4bd848ecdad574bc1cfde /extension/src/openvic-extension/singletons/ModelSingleton.cpp | |
parent | 6797e64ce8179635d56b73b5b4783eca560cbf11 (diff) | |
parent | 99a85d03de5297f2c7c29aedfc83e4e37cbc795b (diff) |
Merge pull request #236 from OpenVicProject/country-definition
Use CountryDefinition and CountryInstance
Diffstat (limited to 'extension/src/openvic-extension/singletons/ModelSingleton.cpp')
-rw-r--r-- | extension/src/openvic-extension/singletons/ModelSingleton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/singletons/ModelSingleton.cpp b/extension/src/openvic-extension/singletons/ModelSingleton.cpp index 8735780..7dea1bd 100644 --- a/extension/src/openvic-extension/singletons/ModelSingleton.cpp +++ b/extension/src/openvic-extension/singletons/ModelSingleton.cpp @@ -207,7 +207,7 @@ bool ModelSingleton::add_unit_dict(ordered_set<T*> const& units, TypedArray<Dict T const& unit = *units.back(); ERR_FAIL_COND_V_MSG(unit.empty(), false, vformat("Empty unit \"%s\"", std_view_to_godot_string(unit.get_name()))); - Country const* country = unit.get_country()->get_base_country(); + CountryDefinition const* country = unit.get_country()->get_country_definition(); GraphicalCultureType const& graphical_culture_type = country->get_graphical_culture(); UnitType const* display_unit_type = unit.get_display_unit_type(); |