aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader/Dataloader.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-12-25 13:21:38 +0100
committer GitHub <noreply@github.com>2023-12-25 13:21:38 +0100
commitbff91f78f9c5339079c10adfbf8232e5159c1a2d (patch)
treea40b49f6dc155fc5c3c47b623926764642242677 /src/openvic-simulation/dataloader/Dataloader.cpp
parentdcef842d5e070854913f9e61e4a1f485870ae703 (diff)
parent48204950cd8d48e6df26ed6892f57b3d9da823de (diff)
Merge pull request #103 from OpenVicProject/province-buildings
Province building scaffolding
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp')
-rw-r--r--src/openvic-simulation/dataloader/Dataloader.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp
index 82f86c6..71cef82 100644
--- a/src/openvic-simulation/dataloader/Dataloader.cpp
+++ b/src/openvic-simulation/dataloader/Dataloader.cpp
@@ -321,6 +321,16 @@ bool Dataloader::_load_pop_types(GameManager& game_manager) const {
);
pop_manager.lock_stratas();
pop_manager.lock_pop_types();
+
+ if (pop_manager.get_slave_sprite() <= 0) {
+ Logger::error("No slave pop type sprite found!");
+ ret = false;
+ }
+ if (pop_manager.get_administrative_sprite() <= 0) {
+ Logger::error("No administrative pop type sprite found!");
+ ret = false;
+ }
+
ret &= pop_manager.generate_modifiers(game_manager.get_modifier_manager());
return ret;
}