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 0a55360714..d9d9252542 100644
--- a/engines/wage/script.cpp
+++ b/engines/wage/script.cpp
@@ -761,7 +761,7 @@ bool Script::evalClickEquality(Operand *lhs, Operand *rhs, bool partialMatch) {
Common::String str = rhs->toString();
str.toLowercase();
- if (lhs->_type == CHR || lhs->_type == OBJ) {
+ if (lhs->_value.inputClick->_classType == CHR || lhs->_value.inputClick->_classType == OBJ) {
Common::String name = lhs->_value.designed->_name;
name.toLowercase();