diff options
Diffstat (limited to 'engines/parallaction/commands.cpp')
-rw-r--r-- | engines/parallaction/commands.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/parallaction/commands.cpp b/engines/parallaction/commands.cpp index af42318d19..a9918133b5 100644 --- a/engines/parallaction/commands.cpp +++ b/engines/parallaction/commands.cpp @@ -49,9 +49,6 @@ namespace Parallaction { void Parallaction::parseCommands(Script &script, CommandList& list) { // printf("parseCommands()"); - Node root; - memset(&root, 0, sizeof(root)); - fillBuffers(script, true); while (scumm_stricmp(_tokens[0], "ENDCOMMANDS") && scumm_stricmp(_tokens[0], "ENDZONE")) { @@ -184,7 +181,7 @@ void Parallaction::parseCommands(Script &script, CommandList& list) { } - addNode(&root, cmd); + list.push_front(cmd); // NOTE: command lists are written backwards in scripts fillBuffers(script, true); } |