Don't allow scripted dialogue with dead actors (Fixes #1493)

deque
scrawl 11 years ago
parent 8d8015ce18
commit 88f8f25ffa

@ -125,6 +125,10 @@ namespace MWDialogue
void DialogueManager::startDialogue (const MWWorld::Ptr& actor)
{
// Dialogue with dead actor (e.g. through script) should not be allowed.
if (actor.getClass().getCreatureStats(actor).isDead())
return;
mLastTopic = "";
mPermanentDispositionChange = 0;
mTemporaryDispositionChange = 0;

Loading…
Cancel
Save