diff options
author | Max Horn | 2009-04-24 10:42:53 +0000 |
---|---|---|
committer | Max Horn | 2009-04-24 10:42:53 +0000 |
commit | 486f10edaf813e19ce55812f7ab75e0b6d349fb6 (patch) | |
tree | 43b38cd1e89fa9a97cf0a963e5bfb0fec5781da0 /engines/sci/engine/game.cpp | |
parent | 7b11ef429edde1d0b5b85063019bf7b0dfcc8bd4 (diff) | |
download | scummvm-rg350-486f10edaf813e19ce55812f7ab75e0b6d349fb6.tar.gz scummvm-rg350-486f10edaf813e19ce55812f7ab75e0b6d349fb6.tar.bz2 scummvm-rg350-486f10edaf813e19ce55812f7ab75e0b6d349fb6.zip |
SCI: Store parse_tree_branch_t in a Common::Arraay
svn-id: r40100
Diffstat (limited to 'engines/sci/engine/game.cpp')
-rw-r--r-- | engines/sci/engine/game.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp index a955b0058b..b19db3475f 100644 --- a/engines/sci/engine/game.cpp +++ b/engines/sci/engine/game.cpp @@ -45,9 +45,9 @@ static int _init_vocabulary(EngineState *s) { // initialize vocabulary and relat if ((s->resmgr->_sciVersion < SCI_VERSION_01_VGA) && vocab_get_words(s->resmgr, s->_parserWords)) { vocab_get_suffixes(s->resmgr, s->_parserSuffixes); - if ((s->parser_branches = vocab_get_branches(s->resmgr, &(s->parser_branches_nr)))) + if (vocab_get_branches(s->resmgr, s->_parserBranches)) // Now build a GNF grammar out of this - s->parser_rules = vocab_build_gnf(s->parser_branches, s->parser_branches_nr); + s->parser_rules = vocab_build_gnf(s->_parserBranches); } else { sciprintf("Assuming that this game does not use a parser.\n"); s->parser_rules = NULL; @@ -530,7 +530,7 @@ void script_free_engine(EngineState *s) { s->_parserWords.clear(); vocab_free_suffixes(s->resmgr, s->_parserSuffixes); - vocab_free_branches(s->parser_branches); + s->_parserBranches.clear(); vocab_free_rule_list(s->parser_rules); s->_selectorNames.clear(); |