From 96744e42c77bd00f69369d9b841500448b1d1ed3 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Mon, 3 Aug 2009 01:06:13 +0000 Subject: Fixed bug in the math expression evaluator; when evaluating operators, operands were being popped from the stack in the wrong order. svn-id: r43019 --- engines/draci/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/draci/script.cpp') diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp index 690d7d45cd..68638ad15b 100644 --- a/engines/draci/script.cpp +++ b/engines/draci/script.cpp @@ -638,8 +638,8 @@ int Script::handleMathExpression(Common::MemoryReadStream &reader) { case kMathOperator: value = reader.readSint16LE(); - arg1 = stk.pop(); arg2 = stk.pop(); + arg1 = stk.pop(); // Fetch operator oper = _operatorList[value-1]; -- cgit v1.2.3