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

Commit

Permalink
Fix another crash bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Aug 16, 2014
1 parent c14d0d4 commit 05d0626
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EU4toV2/Source/V2World/V2World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,14 +635,14 @@ void V2World::convertDiplomacy(const EU4World& sourceWorld, const CountryMapping
V2Relations* r1 = country1->second->getRelations(V2Tag2);
if (!r1)
{
V2Relations* newRelation = new V2Relations(V2Tag2);
country1->second->addRelation(newRelation);
r1 = new V2Relations(V2Tag2);
country1->second->addRelation(r1);
}
V2Relations* r2 = country2->second->getRelations(V2Tag1);
if (!r2)
{
V2Relations* newRelation = new V2Relations(V2Tag1);
country2->second->addRelation(newRelation);
r2 = new V2Relations(V2Tag1);
country2->second->addRelation(r2);
}

if (itr->type == "is_colonial")
Expand Down

0 comments on commit 05d0626

Please sign in to comment.