Check for NULL before running voice scripts

(Fixes #3834)
This commit is contained in:
Allofich 2017-04-22 07:34:08 +09:00
parent 931310d2e2
commit f34e35eb19

View file

@ -646,11 +646,10 @@ namespace MWDialogue
winMgr->messageBox(info->mResponse); winMgr->messageBox(info->mResponse);
if (!info->mSound.empty()) if (!info->mSound.empty())
sndMgr->say(actor, info->mSound); sndMgr->say(actor, info->mSound);
}
if (!info->mResultScript.empty()) if (!info->mResultScript.empty())
executeScript(info->mResultScript, actor); executeScript(info->mResultScript, actor);
} }
}
int DialogueManager::countSavedGameRecords() const int DialogueManager::countSavedGameRecords() const
{ {