mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 23:08:00 +03:00
Merge pull request #1270 from Allofich/scriptfix
Check for NULL before running voice dialogue scripts
This commit is contained in:
commit
0737d6cb72
1 changed files with 2 additions and 3 deletions
|
@ -646,10 +646,9 @@ namespace MWDialogue
|
|||
winMgr->messageBox(info->mResponse);
|
||||
if (!info->mSound.empty())
|
||||
sndMgr->say(actor, info->mSound);
|
||||
if (!info->mResultScript.empty())
|
||||
executeScript(info->mResultScript, actor);
|
||||
}
|
||||
|
||||
if (!info->mResultScript.empty())
|
||||
executeScript(info->mResultScript, actor);
|
||||
}
|
||||
|
||||
int DialogueManager::countSavedGameRecords() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue