1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-05-18 15:11:31 +00:00

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
{ {