aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-12-25 01:22:01 +0100
committer hop311 <hop3114@gmail.com>2023-12-25 01:22:01 +0100
commit48204950cd8d48e6df26ed6892f57b3d9da823de (patch)
tree99822c48f16eb1495f7ea9fe669bcb43e7a6001c /src/openvic-simulation/dataloader
parentbf4e7368600bb425b6612231fbb84de34ec99a27 (diff)
Province building scaffolding
Diffstat (limited to 'src/openvic-simulation/dataloader')
-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;
}