diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-11 23:24:12 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-11 23:24:12 -0300 |
commit | afa8255e16445721ac6d33c09934914cc27e019c (patch) | |
tree | bfb03451fd3e0c8a40f80554dec6aae9e1fd8094 /src/map/script.c | |
parent | 020b3f9fef294dc13a1337681215e63b8b0dd534 (diff) | |
download | hercules-afa8255e16445721ac6d33c09934914cc27e019c.tar.gz hercules-afa8255e16445721ac6d33c09934914cc27e019c.tar.bz2 hercules-afa8255e16445721ac6d33c09934914cc27e019c.tar.xz hercules-afa8255e16445721ac6d33c09934914cc27e019c.zip |
[skip ci] It's evil
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index c268c5d8f..7c03840c8 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4416,7 +4416,7 @@ 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; } else { ret = i1<<i2; } + case C_L_SHIFT: if (i1 < 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: |