mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-31 18:04:55 +07:00
Fixed "Trade is no longer valid" problem
This commit is contained in:
parent
d092e9b6a9
commit
cc1ae034d3
@ -25,7 +25,7 @@ class TradeEvaluation{
|
||||
|
||||
fun hasResource(tradeOffer: TradeOffer): Boolean {
|
||||
val resourcesByName = offerer.getCivResourcesByName()
|
||||
return resourcesByName.containsKey(tradeOffer.name) && resourcesByName[tradeOffer.name]!! >= tradeOffer.amount
|
||||
return resourcesByName.containsKey(tradeOffer.name) && resourcesByName[tradeOffer.name]!! >= 0
|
||||
}
|
||||
|
||||
when(tradeOffer.type){
|
||||
|
Loading…
Reference in New Issue
Block a user