summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-11 10:59:00 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-11 10:59:00 -0300
commitfd1996fc83d4b2ab3d8d090ad99af1767fbbcaee (patch)
tree36e0d8a5a1c7fb59330513663faa693bd96b1aed
parent719d697fed5bab40e0a2fae6372ecbf88bec16d3 (diff)
downloadhercules-fd1996fc83d4b2ab3d8d090ad99af1767fbbcaee.tar.gz
hercules-fd1996fc83d4b2ab3d8d090ad99af1767fbbcaee.tar.bz2
hercules-fd1996fc83d4b2ab3d8d090ad99af1767fbbcaee.tar.xz
hercules-fd1996fc83d4b2ab3d8d090ad99af1767fbbcaee.zip
CI bug cannot be reproduced; Appeal to fancy debug
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 498a0ec1e..7cfb43d2d 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: 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_DIV:
case C_MOD:
if( i2 == 0 )