From b1e43f3ca0d4830bd87a99334dc127e9d20555b1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 22 Apr 2009 17:53:29 +0000 Subject: SCI: Changed knames (kernel function name table) to Common::StringList svn-id: r40078 --- engines/sci/engine/game.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/sci/engine/game.cpp') diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp index 9d79d8e65c..39f1b2135b 100644 --- a/engines/sci/engine/game.cpp +++ b/engines/sci/engine/game.cpp @@ -77,11 +77,10 @@ static void _free_vocabulary(EngineState *s) { vocab_free_rule_list(s->parser_rules); s->_selectorNames.clear(); - vocabulary_free_knames(s->kernel_names); + s->_kernelNames.clear(); vocabulary_free_opcodes(s->opcodes); s->opcodes = NULL; - s->kernel_names = NULL; s->opcodes = NULL; } @@ -477,7 +476,7 @@ int script_init_engine(EngineState *s, sci_version_t version) { s->execution_stack_base = -1; // No vm is running yet s->execution_stack_pos = -1; // Start at execution stack position 0 - s->kernel_names = vocabulary_get_knames(s->resmgr, &s->kernel_names_nr); + vocabulary_get_knames(s->resmgr, s->_kernelNames); script_map_kernel(s); // Maps the kernel functions -- cgit v1.2.3