Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/sdk_compat' into test-release-v15
Browse files Browse the repository at this point in the history
  • Loading branch information
o01eg committed Dec 29, 2024
2 parents fe066d0 + 1c90867 commit e409dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/SerializeEmpire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ void Empire::serialize(Archive& ar, const unsigned int version)
} else {
ar & BOOST_SERIALIZATION_NVP(m_last_turn_received);
}

}

BOOST_CLASS_VERSION(Empire, 13)
Expand Down Expand Up @@ -363,8 +362,9 @@ void serialize(Archive& ar, EmpireManager& em, unsigned int const version)
for (const auto e1_id : em.m_empire_map | range_keys) {
const auto e1_id_lower = [e1_id](auto e2_id) { return e1_id < e2_id; };
for (const auto e2_id : em.m_empire_map | range_keys | range_filter(e1_id_lower)) {
auto dk = DiploKey(e1_id, e2_id);
const auto inserted_missing_status = em.m_empire_diplomatic_statuses.try_emplace(
DiploKey(e1_id, e2_id), DiplomaticStatus::DIPLO_WAR).second;
dk, DiplomaticStatus::DIPLO_WAR).second;
if (inserted_missing_status)
ErrorLogger() << "Added missing diplomatic status (default WAR) between empires "
<< e1_id << " and " << e2_id;
Expand Down

0 comments on commit e409dde

Please sign in to comment.