aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp
index 68bfbe6583..b23f2cbfed 100644
--- a/engines/draci/script.cpp
+++ b/engines/draci/script.cpp
@@ -384,6 +384,10 @@ int Script::run(GPL2Program program, uint16 offset) {
const GPL2Command *cmd;
do {
+ // Clear any parameters left on the stack from the previous command
+ // This likely won't be needed once all commands are implemented
+ params.clear();
+
// read in command pair
uint16 cmdpair = reader.readUint16BE();