[Scummvm-cvs-logs] SF.net SVN: scummvm:[43019] scummvm/branches/gsoc2009-draci/engines/draci/ script.cpp

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Mon Aug 3 03:06:13 CEST 2009


Revision: 43019
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43019&view=rev
Author:   dkasak13
Date:     2009-08-03 01:06:13 +0000 (Mon, 03 Aug 2009)

Log Message:
-----------
Fixed bug in the math expression evaluator; when evaluating operators, operands were being popped from the stack in the wrong order.

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-08-02 23:09:11 UTC (rev 43018)
+++ scummvm/branches/gsoc2009-draci/engines/draci/script.cpp	2009-08-03 01:06:13 UTC (rev 43019)
@@ -638,8 +638,8 @@
 
 		case kMathOperator:
 			value = reader.readSint16LE();
+			arg2 = stk.pop();
 			arg1 = stk.pop();
-			arg2 = stk.pop();
 
 			// Fetch operator
 			oper = _operatorList[value-1];


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