1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-27 04:10:24 +00:00

Merge pull request #1270 from Allofich/scriptfix

Check for NULL before running voice dialogue scripts
This commit is contained in:
MiroslavR 2017-04-22 01:58:20 +02:00 committed by GitHub
commit 0737d6cb72

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