Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State regions crash #705

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
3 changes: 1 addition & 2 deletions src/hoi4_world/world/hoi4_world_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void ConvertWars(const std::vector<vic3::War>& source_wars,
hoi4::World hoi4::ConvertWorld(const commonItems::ModFilesystem& hoi4_mod_filesystem,
const vic3::World& source_world,
const mappers::WorldMapper& world_mapper,
std::future<hoi4::WorldFramework> world_framework_future,
hoi4::WorldFramework& world_framework,
const configuration::Configuration& config)
{
Log(LogLevel::Info) << "Creating Hoi4 world";
Expand All @@ -239,7 +239,6 @@ hoi4::World hoi4::ConvertWorld(const commonItems::ModFilesystem& hoi4_mod_filesy

std::map<std::string, vic3::ProvinceType> vic3_significant_provinces =
GatherVic3SignificantProvinces(source_world.GetStateRegions());
hoi4::WorldFramework world_framework = world_framework_future.get();

ProgressManager::SetProgress(50);
Log(LogLevel::Info) << "\tConverting states";
Expand Down
2 changes: 1 addition & 1 deletion src/hoi4_world/world/hoi4_world_converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace hoi4
World ConvertWorld(const commonItems::ModFilesystem& hoi4_mod_filesystem,
const vic3::World& source_world,
const mappers::WorldMapper& world_mapper,
std::future<WorldFramework> world_framework_future,
WorldFramework& world_framework_future,
const configuration::Configuration& config = configuration::defaultConfig);

} // namespace hoi4
Expand Down
Loading
Loading