MYST3: Fix the variable not in range opcode logic
This commit is contained in:
parent
f93bc935a3
commit
a0bd5d5e19
1 changed files with 1 additions and 1 deletions
|
@ -1498,7 +1498,7 @@ void Script::ifVarNotInRange(Context &c, const Opcode &cmd) {
|
|||
cmd.op, cmd.args[0], cmd.args[1], cmd.args[2]);
|
||||
|
||||
int32 value = _vm->_state->getVar(cmd.args[0]);
|
||||
if(value < cmd.args[1] && value > cmd.args[2])
|
||||
if(value < cmd.args[1] || value > cmd.args[2])
|
||||
return;
|
||||
|
||||
goToElse(c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue