1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-27 04:10:24 +00:00

Don't say voice when using startcombat for a dead actor (Fixes #1542)

This commit is contained in:
scrawl 2014-06-23 21:59:13 +02:00
parent 0b34d8d2fd
commit 320ab1b2c1

View file

@ -1112,7 +1112,7 @@ namespace MWMechanics
} }
// Must be done after the target is set up, so that CreatureTargetted dialogue filter works properly // 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"); MWBase::Environment::get().getDialogueManager()->say(ptr, "attack");
} }