mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 22:58:50 +07:00
Fixed crash in tile editor as a result of adding Fallout, which has no "occursOn" terrains
This commit is contained in:
@ -181,7 +181,7 @@ class TileEditorOptionsTable(val mapEditorScreen: MapEditorScreen): Table(Camera
|
||||
val tileInfo = TileInfo()
|
||||
if (terrain.type == TerrainType.TerrainFeature) {
|
||||
tileInfo.baseTerrain = when {
|
||||
terrain.occursOn == null -> terrain.occursOn!!.first()
|
||||
terrain.occursOn != null -> terrain.occursOn.first()
|
||||
else -> "Grassland"
|
||||
}
|
||||
tileInfo.terrainFeature = terrain.name
|
||||
|
Reference in New Issue
Block a user