Fixed a bug where open borders, war delcarations and cities could not be traded (#6097)

This commit is contained in:
Xander Lenstra 2022-02-02 06:23:11 +01:00 committed by GitHub
parent 3c30a5697f
commit ff2fc02961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ data class TradeOffer(val name: String, val type: TradeType, var amount: Int = 1
constructor(
name: String,
type: TradeType,
amount: Int = -1,
amount: Int = 1,
gameSpeed: GameSpeed = UncivGame.Current.gameInfo.gameParameters.gameSpeed
) : this(name, type, amount, duration = -1) {
duration = when {