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

Commit

Permalink
don't crash when encountering a cored province with no owner
Browse files Browse the repository at this point in the history
  • Loading branch information
dtremenak committed May 30, 2012
1 parent 3cb1030 commit 21fb60b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp_version/EU3toV2Converter/Mapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ void removeDeadLandlessNations(EU3World& world)
bool cultureSurvives = false;
for (unsigned int j = 0; j < cores.size(); j++)
{
if (cores[j]->getOwner() == "")
continue;
if (cores[j]->getCulture() == culture)
{
if (world.getCountry(cores[j]->getOwner())->getPrimaryCulture() != culture)
Expand Down

0 comments on commit 21fb60b

Please sign in to comment.