[Scummvm-cvs-logs] SF.net SVN: scummvm:[42185] scummvm/branches/gsoc2009-draci/engines/draci/ script.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Mon Jul 6 19:29:44 CEST 2009
Revision: 42185
http://scummvm.svn.sourceforge.net/scummvm/?rev=42185&view=rev
Author: dkasak13
Date: 2009-07-06 17:29:44 +0000 (Mon, 06 Jul 2009)
Log Message:
-----------
Fixed bug where the GPL interpreter left parameters from previous commands on the stack.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-06 17:27:12 UTC (rev 42184)
+++ scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-06 17:29:44 UTC (rev 42185)
@@ -384,6 +384,10 @@
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();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list