MYST3: Fix the variable not in range opcode logic

This commit is contained in:
Bastien Bouclet 2014-07-02 00:02:30 +02:00
parent f93bc935a3
commit a0bd5d5e19

View file

@ -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);