diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-11 11:25:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-11 11:25:53 -0300 |
commit | 020b3f9fef294dc13a1337681215e63b8b0dd534 (patch) | |
tree | e923946dfd18259417b1ee78688b969080e94ee8 /src | |
parent | fd1996fc83d4b2ab3d8d090ad99af1767fbbcaee (diff) | |
download | hercules-020b3f9fef294dc13a1337681215e63b8b0dd534.tar.gz hercules-020b3f9fef294dc13a1337681215e63b8b0dd534.tar.bz2 hercules-020b3f9fef294dc13a1337681215e63b8b0dd534.tar.xz hercules-020b3f9fef294dc13a1337681215e63b8b0dd534.zip |
[skip ci] *sigh*
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 7cfb43d2d..c268c5d8f 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4416,7 +4416,8 @@ static void op_2num(struct script_state *st, int op, int i1, int i2) case C_LT: ret = (i1 < i2); break; case C_LE: ret = (i1 <= i2); break; case C_R_SHIFT: ret = i1>>i2; break; - case C_L_SHIFT: if (i2 < 0) { ShowError("Invalid left shift op=%s i1=%d i2=%d\n", script->op2name(op), i1, i2); script->reportsrc(st); script_pushnil(st); st->state = END; return; } ret = i1<<i2; break; + case C_L_SHIFT: if (i2 < 0) { ShowError("Invalid left shift op=%s i1=%d i2=%d\n", script->op2name(op), i1, i2); script->reportsrc(st); script_pushnil(st); st->state = END; return; } else { ret = i1<<i2; } + break; case C_DIV: case C_MOD: if( i2 == 0 ) |