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:
parent
8d8015ce18
commit
88f8f25ffa
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue