diff --git a/Vic2ToHoI4/Source/HOI4World/HoI4Country.cpp b/Vic2ToHoI4/Source/HOI4World/HoI4Country.cpp index 7ff56c1a2..20f683c91 100644 --- a/Vic2ToHoI4/Source/HOI4World/HoI4Country.cpp +++ b/Vic2ToHoI4/Source/HOI4World/HoI4Country.cpp @@ -1250,14 +1250,17 @@ void HoI4Country::outputNamesSet(ofstream& namesFile, const vector& name void HoI4Country::output(const set& ideologicalMinisters, const vector& 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"); + } } }