diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp index c63c9faea6b..e9d35226bac 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);