From 0da7918a9495a4e3f12e0e32c05a56d83b0e4a64 Mon Sep 17 00:00:00 2001 From: itanasi <44038014+itanasi@users.noreply.github.com> Date: Wed, 3 Aug 2022 07:42:41 -0700 Subject: [PATCH] Minor Compile change (#7588) --- .../unciv/logic/automation/civilization/ReligionAutomation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt b/core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt index f6984923d0..76ae8b8778 100644 --- a/core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt +++ b/core/src/com/unciv/logic/automation/civilization/ReligionAutomation.kt @@ -45,7 +45,7 @@ object ReligionAutomation { ) { val (city, pressureDifference) = citiesWithoutOurReligion.map { city -> city to city.religion.getPressureDeficit(civInfo.religionManager.religion?.name) - }.maxBy { it.second } + }.maxByOrNull { it.second }!! if (pressureDifference >= Constants.aiPreferInquisitorOverMissionaryPressureDifference) buyInquisitorNear(civInfo, city) buyMissionaryInAnyCity(civInfo)