Skip to content

Commit

Permalink
Fixed a bug with fully decentralized HRE crashing on not assigning co…
Browse files Browse the repository at this point in the history
…res. (#790)
  • Loading branch information
Ivo Elezović authored Oct 14, 2021
1 parent cb3cfbf commit 5aa46c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EU4toV2/Source/V2World/V2World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ void V2::World::addUnions(bool hreDecentralized, const std::shared_ptr<Country>&
{
auto unionCores = culturalUnionMapper->getCoresForCulture(culture);
auto nationalCores = culturalNationalitiesMapper->getCoresForCulture(culture);
if (hreDecentralized && emperorCultureGroup->containsCulture(culture))
if (hreDecentralized && emperor && emperorCultureGroup && emperorCultureGroup->containsCulture(culture))
unionCores.clear();

switch (theConfiguration.getCoreHandling())
Expand Down

0 comments on commit 5aa46c4

Please sign in to comment.