aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2010-05-22 15:30:18 +0000
committerNicola Mettifogo2010-05-22 15:30:18 +0000
commit1b6d9c86e2b62f4e1543417d43386fab12c7f4f0 (patch)
treefa71ce90f2eea02de41698cba2d78eb1882b1493 /engines/parallaction
parentd56352cbd515e35f5f85ee607d2f8148ae2e1e59 (diff)
downloadscummvm-rg350-1b6d9c86e2b62f4e1543417d43386fab12c7f4f0.tar.gz
scummvm-rg350-1b6d9c86e2b62f4e1543417d43386fab12c7f4f0.tar.bz2
scummvm-rg350-1b6d9c86e2b62f4e1543417d43386fab12c7f4f0.zip
Make sure a dialogue is valid before entering dialogue mode.
svn-id: r49139
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/dialogue.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp
index 6332600226..7a28d18f17 100644
--- a/engines/parallaction/dialogue.cpp
+++ b/engines/parallaction/dialogue.cpp
@@ -461,6 +461,10 @@ public:
void Parallaction::enterDialogueMode(ZonePtr z) {
+ if (!z->u._speakDialogue) {
+ return;
+ }
+
debugC(1, kDebugDialogue, "Parallaction::enterDialogueMode(%s)", z->u._filename.c_str());
_dialogueMan = createDialogueManager(z);
assert(_dialogueMan);