message: Don't output names, unit names, advisors, or idea sprites for invalid
  nations
diff: @@ -1685,11 +1685,11 @@ void HoI4World::outputCommonCountries() const
  exit(-1);
  }
  - for (auto countryItr: countries)
  + for (auto country: countries)
  {
  - if (countryItr.second->getCapitalStateNum() != 0)
  + if (country.second->getCapitalStateNum() != 0)
  {
  - countryItr.second->outputToCommonCountriesFile(allCountriesFile);
  + country.second->outputToCommonCountriesFile(allCountriesFile);
  }
  }
  @@ -1714,11 +1714,11 @@ void HoI4World::outputColorsfile() const
  }
  output << "#reload countrycolors\n";
  - for (auto countryItr: countries)
  + for (auto country: countries)
  {
  - if (countryItr.second->getCapitalStateNum() != 0)
  + if (country.second->getCapitalStateNum() != 0)
  {
  - countryItr.second->outputColors(output);
  + country.second->outputColors(output);
  }
  }
  @@ -1738,10 +1738,13 @@ void HoI4World::outputNames() const
  }
  for (auto country: countries)
  + {
  + if (country.second->getCapitalStateNum() != 0)
  {
  country.second->outputToNamesFiles(namesFile);
  }
  }
  +}
  void HoI4World::outputUnitNames() const
  {
  @@ -1755,10 +1758,13 @@ void HoI4World::outputUnitNames() const
  }
  for (auto country : countries)
  + {
  + if (country.second->getCapitalStateNum() != 0)
  {
  country.second->outputToUnitNamesFiles(namesFile);
  }
  }
  +}
  void HoI4World::outputMap() const
  @@ -1848,9 +1854,12 @@ void HoI4World::outputCountries() const
  }
  for (auto country: countries)
  + {
  + if (country.second->getCapitalStateNum() != 0)
  {
  country.second->output(getActiveIdeologicalAdvisors(), divisionTemplates);
  }
  + }
  ofstream ideasFile("output/" + Configuration::getOutputName() + "/interface/converter_ideas.gfx");
  if (!ideasFile.is_open())
  @@ -1861,9 +1870,12 @@ void HoI4World::outputCountries() const
  ideasFile << "spriteTypes = {\n";
  for (auto country: countries)
  + {
  + if (country.second->getCapitalStateNum() != 0)
  {
  country.second->outputIdeaGraphics(ideasFile);
  }
  + }
  ideasFile << "\n";
  ideasFile << "}\n";
  }
  