From eb0367184a879f47d023584f9131158c45630d39 Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Mon, 15 Apr 2024 22:55:34 +0200 Subject: [PATCH] Fix Invest quest stays forever (#11475) --- core/src/com/unciv/logic/civilization/managers/QuestManager.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/civilization/managers/QuestManager.kt b/core/src/com/unciv/logic/civilization/managers/QuestManager.kt index a5d9d394fd..adef6cbe63 100644 --- a/core/src/com/unciv/logic/civilization/managers/QuestManager.kt +++ b/core/src/com/unciv/logic/civilization/managers/QuestManager.kt @@ -272,8 +272,7 @@ class QuestManager : IsPartOfGameInfoSerialization { winnersAndLosers.winners.forEach { giveReward(it) } winnersAndLosers.losers.forEach { notifyExpired(it, winnersAndLosers.winners) } - assignedQuests.removeAll(winnersAndLosers.winners) - assignedQuests.removeAll(winnersAndLosers.losers) + assignedQuests.removeAll { it.questNameInstance == questName } // removing winners then losers would leave those with score 0 } private fun handleIndividualQuests() {