From 1c17260d875ddc04d89bf21d6ae12a212382e060 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Mon, 17 Oct 2022 09:35:43 +0200 Subject: [PATCH] Don't use potentially invalid cache entry --- apps/openmw/mwdialogue/dialoguemanagerimp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/openmw/mwdialogue/dialoguemanagerimp.cpp b/apps/openmw/mwdialogue/dialoguemanagerimp.cpp index 690f05d51f..4deab10647 100644 --- a/apps/openmw/mwdialogue/dialoguemanagerimp.cpp +++ b/apps/openmw/mwdialogue/dialoguemanagerimp.cpp @@ -293,8 +293,7 @@ namespace MWDialogue const ESM::Dialogue& dialogue = *dialogues.find(topic); - const ESM::DialInfo* info = mChoice == -1 && mActorKnownTopics.count(topic) ? mActorKnownTopics[topic].mInfo - : filter.search(dialogue, true); + const ESM::DialInfo* info = filter.search(dialogue, true); if (info) {