diff options
author | Martin Kiewitz | 2010-05-18 12:34:14 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-05-18 12:34:14 +0000 |
commit | e3297ef2cad4b0efc4b262d73b1be4630497dd4a (patch) | |
tree | baec54e6c0bc5cb39b749551b7aa792218dde2f7 /engines/sci/parser/grammar.cpp | |
parent | 46af5a5162db4c2b5c238f02465ee226c04e834f (diff) | |
download | scummvm-rg350-e3297ef2cad4b0efc4b262d73b1be4630497dd4a.tar.gz scummvm-rg350-e3297ef2cad4b0efc4b262d73b1be4630497dd4a.tar.bz2 scummvm-rg350-e3297ef2cad4b0efc4b262d73b1be4630497dd4a.zip |
SCI: fixing crash in pq2 - not sure about this, lskovlun should take a look at this
svn-id: r49077
Diffstat (limited to 'engines/sci/parser/grammar.cpp')
-rw-r--r-- | engines/sci/parser/grammar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/parser/grammar.cpp b/engines/sci/parser/grammar.cpp index 1f35bffbc4..1cfe84076f 100644 --- a/engines/sci/parser/grammar.cpp +++ b/engines/sci/parser/grammar.cpp @@ -273,7 +273,9 @@ static ParseRuleList *_vocab_add_rule(ParseRuleList *list, ParseRule *rule) { if (seeker->next->terminal == term) { if (*(seeker->next->rule) == *rule) { delete rule; - delete new_elem; + // FIXME: not sure about this change, fixes pq2 crashing when having opened the cabinet + // and typing "go to bains" - delete rule deletes part of new_elem + //delete new_elem; return list; // No duplicate rules } } |