1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:23:53 +00:00

Don't use potentially invalid cache entry

This commit is contained in:
Evil Eye 2022-10-17 09:35:43 +02:00
parent 1924a3a694
commit 1c17260d87

View file

@ -293,8 +293,7 @@ namespace MWDialogue
const ESM::Dialogue& dialogue = *dialogues.find(topic); const ESM::Dialogue& dialogue = *dialogues.find(topic);
const ESM::DialInfo* info = mChoice == -1 && mActorKnownTopics.count(topic) ? mActorKnownTopics[topic].mInfo const ESM::DialInfo* info = filter.search(dialogue, true);
: filter.search(dialogue, true);
if (info) if (info)
{ {