Fixed crash in rare situation where a citadel takes over land of an unknown civ

This commit is contained in:
Yair Morgenstern 2020-05-14 08:22:30 +03:00
parent f7e3017826
commit de337a0ca2

View file

@ -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)
}