mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 04:16:34 +00:00
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:
parent
6b2991f488
commit
a41d36de0f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user