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

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Sun Jul 12 20:55:44 CEST 2009


Revision: 42424
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42424&view=rev
Author:   dkasak13
Date:     2009-07-12 18:55:44 +0000 (Sun, 12 Jul 2009)

Log Message:
-----------
Fixed bug in the GPL math evaluator (GPL function results were not pushed onto the evaluation 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-12 18:52:38 UTC (rev 42423)
+++ scummvm/branches/gsoc2009-draci/engines/draci/script.cpp	2009-07-12 18:55:44 UTC (rev 42424)
@@ -350,6 +350,9 @@
 
 				// Calculate result
 				res = (this->*(func._handler))(arg1);
+
+				// Push the result on the evaluation stack
+				stk.push(res);
 			
 				debugC(3, kDraciBytecodeDebugLevel, "\t\tcall: %s(%d) (res: %d)",
 					func._name.c_str(), arg1, res);


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