diff options
author | Paul Gilbert | 2017-11-11 16:45:50 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-11-11 16:45:50 -0500 |
commit | 406ff7db10089ad502cf5a80a3534dd82c371ef7 (patch) | |
tree | 9033ee085684967a2e94db79056cada540becacc | |
parent | 2c2803863eadf9875c60607b116be9dce888ac2c (diff) | |
download | scummvm-rg350-406ff7db10089ad502cf5a80a3534dd82c371ef7.tar.gz scummvm-rg350-406ff7db10089ad502cf5a80a3534dd82c371ef7.tar.bz2 scummvm-rg350-406ff7db10089ad502cf5a80a3534dd82c371ef7.zip |
XEEN: Fix comparisons for script If opcode
-rw-r--r-- | engines/xeen/scripts.cpp | 6 |
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; } |