diff options
author | Max Horn | 2010-02-13 17:42:49 +0000 |
---|---|---|
committer | Max Horn | 2010-02-13 17:42:49 +0000 |
commit | ac4d325e0d61b649026a5f5414f749697b285ccc (patch) | |
tree | c58f62596d050be62e98180c0255e7998a9a62e4 /engines/sci/parser/grammar.cpp | |
parent | 24fd77eb242c4d90e8c3a3b0bcc5f0c48a4dc77f (diff) | |
download | scummvm-rg350-ac4d325e0d61b649026a5f5414f749697b285ccc.tar.gz scummvm-rg350-ac4d325e0d61b649026a5f5414f749697b285ccc.tar.bz2 scummvm-rg350-ac4d325e0d61b649026a5f5414f749697b285ccc.zip |
SCI: Add global g_sci pointer to the active SciEngine instance
svn-id: r48046
Diffstat (limited to 'engines/sci/parser/grammar.cpp')
-rw-r--r-- | engines/sci/parser/grammar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/parser/grammar.cpp b/engines/sci/parser/grammar.cpp index 9ee3b8aeaa..1f35bffbc4 100644 --- a/engines/sci/parser/grammar.cpp +++ b/engines/sci/parser/grammar.cpp @@ -355,7 +355,7 @@ ParseRuleList *Vocabulary::buildGNF(bool verbose) { int ntrules_nr; ParseRuleList *ntlist = NULL; ParseRuleList *tlist, *new_tlist; - Console *con = ((SciEngine *)g_engine)->getSciDebugger(); + Console *con = g_sci->getSciDebugger(); for (uint i = 1; i < _parserBranches.size(); i++) { // branch rule 0 is treated specially ParseRule *rule = _vbuild_rule(&_parserBranches[i]); @@ -480,7 +480,7 @@ static int _vbpt_write_subexpression(parse_tree_node_t *nodes, int *pos, ParseRu } int Vocabulary::parseGNF(const ResultWordList &words, bool verbose) { - Console *con = ((SciEngine *)g_engine)->getSciDebugger(); + Console *con = g_sci->getSciDebugger(); // Get the start rules: ParseRuleList *work = _vocab_clone_rule_list_by_id(_parserRules, _parserBranches[0].data[1]); ParseRuleList *results = NULL; |