diff options
author | Denis Kasak | 2009-07-06 17:29:44 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-06 17:29:44 +0000 |
commit | 237707dd6e0d07db130de9cdae5f7c9f5169ff71 (patch) | |
tree | 21a5350b454472f330bda7aa64d6da9f545d12bd | |
parent | 4e15262e7493b726fa4a6ea57089063211180d2d (diff) | |
download | scummvm-rg350-237707dd6e0d07db130de9cdae5f7c9f5169ff71.tar.gz scummvm-rg350-237707dd6e0d07db130de9cdae5f7c9f5169ff71.tar.bz2 scummvm-rg350-237707dd6e0d07db130de9cdae5f7c9f5169ff71.zip |
Fixed bug where the GPL interpreter left parameters from previous commands on the stack.
svn-id: r42185
-rw-r--r-- | engines/draci/script.cpp | 4 |
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(); |