aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-19 15:30:27 +0000
committerMartin Kiewitz2010-07-19 15:30:27 +0000
commitb7b904f9814ca0644a8fea1a3fb9250a4a4fbbd5 (patch)
tree078cf1f2011659a90f6cc5a7091c3465e2928cba /engines/sci/engine
parentcda55fe770ed71f5d4b00690ba4ea196ad4b533f (diff)
downloadscummvm-rg350-b7b904f9814ca0644a8fea1a3fb9250a4a4fbbd5.tar.gz
scummvm-rg350-b7b904f9814ca0644a8fea1a3fb9250a4a4fbbd5.tar.bz2
scummvm-rg350-b7b904f9814ca0644a8fea1a3fb9250a4a4fbbd5.zip
SCI: fix regression of r51027
we have to reset the parser when switching vocabulary svn-id: r51031
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/state.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/engine/state.cpp b/engines/sci/engine/state.cpp
index e07373b466..a069344d61 100644
--- a/engines/sci/engine/state.cpp
+++ b/engines/sci/engine/state.cpp
@@ -332,6 +332,7 @@ void SciEngine::checkVocabularySwitch() {
if (parserLanguage != _vocabularyLanguage) {
delete _vocabulary;
_vocabulary = new Vocabulary(_resMan, parserLanguage > 1 ? true : false);
+ _vocabulary->reset();
_vocabularyLanguage = parserLanguage;
}
}