diff options
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp')
-rw-r--r-- | src/openvic-simulation/dataloader/Dataloader.cpp | 10 |
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; } |