mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-17 11:43:25 +00:00
Don't allow scripted dialogue with dead actors (Fixes #1493)
This commit is contained in:
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…
x
Reference in New Issue
Block a user