diff --git a/EU4toV2/Source/V2World/V2World.cpp b/EU4toV2/Source/V2World/V2World.cpp index 0bb56da06..980e74f42 100644 --- a/EU4toV2/Source/V2World/V2World.cpp +++ b/EU4toV2/Source/V2World/V2World.cpp @@ -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")