Fixed bug in the GPL math evaluator (GPL function results were not pushed onto the evaluation stack).

svn-id: r42424
This commit is contained in:
Denis Kasak 2009-07-12 18:55:44 +00:00
parent 6b2991f488
commit a41d36de0f

View File

@ -350,6 +350,9 @@ int Script::handleMathExpression(Common::MemoryReadStream &reader) {
// 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);