aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/xeen/scripts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index daead8ce89..0a14de0c82 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -1711,11 +1711,11 @@ bool Scripts::ifProc(int action, uint32 mask, int mode, int charIndex) {
switch (mode) {
case 0:
- return mask >= v;
+ return v >= mask;
case 1:
- return mask == v;
+ return v = mask;
case 2:
- return mask <= v;
+ return v <= mask;
default:
return false;
}