Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
Handle disappearing countries more gracefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Nov 16, 2017
1 parent cdc347a commit 63d189e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Vic2ToHoI4/Source/HOI4World/HoI4Country.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1250,14 +1250,17 @@ void HoI4Country::outputNamesSet(ofstream& namesFile, const vector<string>& name

void HoI4Country::output(const set<const HoI4Advisor*, advisorCompare>& ideologicalMinisters, const vector<HoI4DivisionTemplateType>& divisionTemplates) const
{
outputHistory();
outputOOB(divisionTemplates);
outputCommonCountryFile();
outputIdeas(ideologicalMinisters);

if (nationalFocus != nullptr)
if (capitalStateNum != 0)
{
nationalFocus->output("output/" + Configuration::getOutputName() + "/common/national_focus/" + srcCountry->getTag() + "_NF.txt");
outputHistory();
outputOOB(divisionTemplates);
outputCommonCountryFile();
outputIdeas(ideologicalMinisters);

if (nationalFocus != nullptr)
{
nationalFocus->output("output/" + Configuration::getOutputName() + "/common/national_focus/" + srcCountry->getTag() + "_NF.txt");
}
}
}

Expand Down

0 comments on commit 63d189e

Please sign in to comment.