Skip to content

Commit

Permalink
Clean up non_aggression_pact error log entry (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
cetvrtak authored Nov 30, 2023
1 parent e361343 commit c29feed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/OutHoi4/OutHoi4Country.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,10 @@ void outputAlliances(std::ostream& output, const std::set<std::string>& allies)
for (const auto& ally: allies)
{
output << "give_guarantee = " << ally << "\n";
output << "diplomatic_relation = { country = " << ally << " relation = non_aggression_pact }\n";
output << "if = {\n";
output << "\tlimit = { NOT = { has_non_aggression_pact_with = " << ally << " } }\n";
output << "\tdiplomatic_relation = { country = " << ally << " relation = non_aggression_pact }\n";
output << "}\n";
output << "\n";
}
}
Expand Down

0 comments on commit c29feed

Please sign in to comment.