Fixed crash in rare situation where a citadel takes over land of an unknown civ
This commit is contained in:
parent
f7e3017826
commit
de337a0ca2
1 changed files with 1 additions and 0 deletions
|
@ -398,6 +398,7 @@ object UnitActions {
|
|||
val otherCiv = tile.getOwner()
|
||||
if (otherCiv != null) {
|
||||
// decrease relations for -10 pt/tile
|
||||
if(!otherCiv.knows(unit.civInfo)) otherCiv.meetCivilization(unit.civInfo)
|
||||
otherCiv.getDiplomacyManager(unit.civInfo).addModifier(DiplomaticModifiers.StealingTerritory, -10f)
|
||||
notifications.add(otherCiv)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue