mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 13:49:54 +07:00
Fixed nullptrexception (#4458)
This commit is contained in:
@ -558,7 +558,7 @@ object Battle {
|
||||
}
|
||||
|
||||
// Remove improvements, add fallout
|
||||
if (tile.improvement != null && !attacker.getTile().getTileImprovement()!!.hasUnique("Indestructible")) {
|
||||
if (tile.improvement != null && !tile.getTileImprovement()!!.hasUnique("Indestructible")) {
|
||||
tile.improvement = null
|
||||
}
|
||||
tile.improvementInProgress = null
|
||||
@ -620,7 +620,7 @@ object Battle {
|
||||
}
|
||||
|
||||
// Remove improvements
|
||||
if (tile.improvement != null && !attacker.getTile().getTileImprovement()!!.hasUnique("Indestructible")) {
|
||||
if (tile.improvement != null && !tile.getTileImprovement()!!.hasUnique("Indestructible")) {
|
||||
tile.improvement = null
|
||||
}
|
||||
tile.improvementInProgress = null
|
||||
|
Reference in New Issue
Block a user