mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:53:53 +00:00
Set the TalkedToPc flag for voiced dialogue (Fixes #3346)
This commit is contained in:
parent
2b521b8436
commit
4854d6b093
1 changed files with 2 additions and 1 deletions
|
@ -629,7 +629,8 @@ namespace MWDialogue
|
||||||
const MWWorld::ESMStore &store = MWBase::Environment::get().getWorld()->getStore();
|
const MWWorld::ESMStore &store = MWBase::Environment::get().getWorld()->getStore();
|
||||||
const ESM::Dialogue *dial = store.get<ESM::Dialogue>().find(topic);
|
const ESM::Dialogue *dial = store.get<ESM::Dialogue>().find(topic);
|
||||||
|
|
||||||
Filter filter(actor, 0, false);
|
const MWMechanics::CreatureStats& creatureStats = actor.getClass().getCreatureStats(actor);
|
||||||
|
Filter filter(actor, 0, creatureStats.hasTalkedToPlayer());
|
||||||
const ESM::DialInfo *info = filter.search(*dial, false);
|
const ESM::DialInfo *info = filter.search(*dial, false);
|
||||||
if(info != NULL)
|
if(info != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue