aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp
index ae31d636ba..cb0710965e 100644
--- a/engines/wage/script.cpp
+++ b/engines/wage/script.cpp
@@ -690,7 +690,7 @@ bool Script::eval(Operand *lhs, const char *op, Operand *rhs) {
Script::Operand *Script::convertOperand(Operand *operand, int type) {
if (operand->_type == type)
- return operand;
+ return new Operand(*operand);
if (type == SCENE) {
if (operand->_type == STRING || operand->_type == NUMBER) {