aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/draci/script.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp
index c63c9faea6..e9d35226ba 100644
--- a/engines/draci/script.cpp
+++ b/engines/draci/script.cpp
@@ -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);