mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-12 10:59:55 +07:00
Fixed crash in rare situation where a citadel takes over land of an unknown civ
This commit is contained in:
parent
f7e3017826
commit
de337a0ca2
@ -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 New Issue
Block a user