diff options
author | Max Horn | 2009-04-28 15:58:19 +0000 |
---|---|---|
committer | Max Horn | 2009-04-28 15:58:19 +0000 |
commit | 294bd0dc071d0e38719de1c1260ad30be8199618 (patch) | |
tree | 684ce45ac90d0fc89e28fdabad794b8e789c3aea /engines/sci/engine/game.cpp | |
parent | 01fceec37c83ba855ed60b284d47c7e6a84d2f1d (diff) | |
download | scummvm-rg350-294bd0dc071d0e38719de1c1260ad30be8199618.tar.gz scummvm-rg350-294bd0dc071d0e38719de1c1260ad30be8199618.tar.bz2 scummvm-rg350-294bd0dc071d0e38719de1c1260ad30be8199618.zip |
SCI: Renamed execution_stack -> _executionStack and turned it into a Common::Array
svn-id: r40182
Diffstat (limited to 'engines/sci/engine/game.cpp')
-rw-r--r-- | engines/sci/engine/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp index 48e70eb801..0130ee7afe 100644 --- a/engines/sci/engine/game.cpp +++ b/engines/sci/engine/game.cpp @@ -444,7 +444,7 @@ int script_init_engine(EngineState *s, sci_version_t version) { s->r_acc = s->r_prev = NULL_REG; s->r_amp_rest = 0; - s->execution_stack = NULL; // Start without any execution stack + s->_executionStack.clear(); // Start without any execution stack s->execution_stack_base = -1; // No vm is running yet s->execution_stack_pos = -1; // Start at execution stack position 0 @@ -620,7 +620,7 @@ int game_init(EngineState *s) { } int game_exit(EngineState *s) { - free(s->execution_stack); + s->_executionStack.clear(); if (!s->successor) { sfx_exit(&s->sound); |