1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:23:52 +00:00

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

This commit is contained in:
scrawl 2014-06-14 20:12:52 +02:00
parent 8d8015ce18
commit 88f8f25ffa

View file

@ -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;