diff options
author | Hop311 <Hop3114@gmail.com> | 2023-12-24 13:44:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-24 13:44:48 +0100 |
commit | f036506b88af02508242f279ca29b743ef713976 (patch) | |
tree | 0fb82e22b383996606ef6adc3e92c42d85bc6777 /src/openvic-simulation/history/DiplomaticHistory.cpp | |
parent | 14e47d58b85f657ec1fed8abf88219f09bd3efbb (diff) | |
parent | 8a33982e543b7fb8c09be90ebadb33fe7f99b52f (diff) |
Merge pull request #102 from OpenVicProject/tgc-compat
Fixed TGC compatibility + misc cleanup
Diffstat (limited to 'src/openvic-simulation/history/DiplomaticHistory.cpp')
-rw-r--r-- | src/openvic-simulation/history/DiplomaticHistory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvic-simulation/history/DiplomaticHistory.cpp b/src/openvic-simulation/history/DiplomaticHistory.cpp index ce55001..9fd6060 100644 --- a/src/openvic-simulation/history/DiplomaticHistory.cpp +++ b/src/openvic-simulation/history/DiplomaticHistory.cpp @@ -186,8 +186,8 @@ bool DiplomaticHistoryManager::load_war_history_file(GameManager const& game_man } if (participant_to_remove == nullptr) { - Logger::error("In history of war ", name, " at date ", current_date.to_string(), ": Attempted to remove attacking country ", country.get_identifier(), " which was not present!"); - return false; + Logger::warning("In history of war ", name, " at date ", current_date.to_string(), ": Attempted to remove attacking country ", country.get_identifier(), " which was not present!"); + return true; } participant_to_remove->exited.emplace(current_date); @@ -204,8 +204,8 @@ bool DiplomaticHistoryManager::load_war_history_file(GameManager const& game_man } if (participant_to_remove == nullptr) { - Logger::error("In history of war ", name, " at date ", current_date.to_string(), ": Attempted to remove attacking country ", country.get_identifier(), " which was not present!"); - return false; + Logger::warning("In history of war ", name, " at date ", current_date.to_string(), ": Attempted to remove attacking country ", country.get_identifier(), " which was not present!"); + return true; } participant_to_remove->exited.emplace(current_date); |