mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 09:48:12 +07:00
Clean improvement queue from improvements not in ruleset
This commit is contained in:
@ -830,6 +830,8 @@ class Tile : IsPartOfGameInfoSerialization, Json.Serializable {
|
|||||||
resource = null
|
resource = null
|
||||||
if (improvement != null && improvement !in ruleset.tileImprovements)
|
if (improvement != null && improvement !in ruleset.tileImprovements)
|
||||||
improvement = null
|
improvement = null
|
||||||
|
if (improvementQueue.any { it.improvement !in ruleset.tileImprovements })
|
||||||
|
improvementQueue.clear() // Just get rid of everything, all bets are off
|
||||||
}
|
}
|
||||||
|
|
||||||
/** If the unit isn't in the ruleset we can't even know what type of unit this is! So check each place
|
/** If the unit isn't in the ruleset we can't even know what type of unit this is! So check each place
|
||||||
|
Reference in New Issue
Block a user