mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
Don't say voice when using startcombat for a dead actor (Fixes #1542)
This commit is contained in:
parent
0b34d8d2fd
commit
320ab1b2c1
1 changed files with 1 additions and 1 deletions
|
@ -1112,7 +1112,7 @@ namespace MWMechanics
|
|||
}
|
||||
|
||||
// Must be done after the target is set up, so that CreatureTargetted dialogue filter works properly
|
||||
if (ptr.getClass().isNpc())
|
||||
if (ptr.getClass().isNpc() && !ptr.getClass().getCreatureStats(ptr).isDead())
|
||||
MWBase::Environment::get().getDialogueManager()->say(ptr, "attack");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue