diff options
author | Martin Kiewitz | 2010-07-19 15:30:27 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-19 15:30:27 +0000 |
commit | b7b904f9814ca0644a8fea1a3fb9250a4a4fbbd5 (patch) | |
tree | 078cf1f2011659a90f6cc5a7091c3465e2928cba /engines/sci/sci.cpp | |
parent | cda55fe770ed71f5d4b00690ba4ea196ad4b533f (diff) | |
download | scummvm-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/sci.cpp')
-rw-r--r-- | engines/sci/sci.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 11d1057fff..4b467a7578 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -301,9 +301,7 @@ bool SciEngine::initGame() { // Reset parser if (_vocabulary) { - _vocabulary->parserIsValid = false; // Invalidate parser - _vocabulary->parser_event = NULL_REG; // Invalidate parser event - _vocabulary->parser_base = make_reg(_gamestate->_segMan->getSysStringsSegment(), SYS_STRING_PARSER_BASE); + _vocabulary->reset(); } _gamestate->gameStartTime = _gamestate->lastWaitTime = _gamestate->_screenUpdateTime = g_system->getMillis(); |