diff options
author | hop311 <hop3114@gmail.com> | 2024-06-15 12:45:48 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-07-04 10:45:35 +0200 |
commit | 99a85d03de5297f2c7c29aedfc83e4e37cbc795b (patch) | |
tree | 2933b65a98ef0a4b32c4bd848ecdad574bc1cfde /extension/src/openvic-extension/singletons/ModelSingleton.cpp | |
parent | db246d901d1ccd39b0ed3fc024f28ad7b6b4848b (diff) |
Use CountryDefinition and CountryInstancecountry-definition
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(); |