mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 02:09:21 +07:00
Fixed bug where Open Borders trades didn't work when loading games
This commit is contained in:
@ -296,7 +296,11 @@ class CivilizationInfo {
|
||||
|
||||
tech.civInfo = this
|
||||
tech.setTransients()
|
||||
diplomacy.values.forEach { it.civInfo=this}
|
||||
|
||||
diplomacy.values.forEach {
|
||||
it.civInfo=this
|
||||
it.updateHasOpenBorders()
|
||||
}
|
||||
|
||||
victoryManager.civInfo=this
|
||||
|
||||
|
@ -85,7 +85,6 @@ class DiplomacyManager() {
|
||||
toReturn.trades.addAll(trades.map { it.clone() })
|
||||
toReturn.influence = influence
|
||||
toReturn.flagsCountdown.putAll(flagsCountdown)
|
||||
toReturn.hasOpenBorders=hasOpenBorders
|
||||
toReturn.diplomaticModifiers.putAll(diplomaticModifiers)
|
||||
return toReturn
|
||||
}
|
||||
|
Reference in New Issue
Block a user