From de337a0ca23715c48acf6a90ae398c1822c92fd2 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 14 May 2020 08:22:30 +0300 Subject: [PATCH] Fixed crash in rare situation where a citadel takes over land of an unknown civ --- core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt index 88107d03dd..7f9ad351a9 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt @@ -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) }