diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-12 00:42:47 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-12 00:42:47 -0300 |
commit | 53cdeba6f32d786001e195aeb88e3b5814991b4f (patch) | |
tree | bfb03451fd3e0c8a40f80554dec6aae9e1fd8094 | |
parent | 08126b77ca9def4524e3d58a48e7943263b29222 (diff) | |
download | hercules-53cdeba6f32d786001e195aeb88e3b5814991b4f.tar.gz hercules-53cdeba6f32d786001e195aeb88e3b5814991b4f.tar.bz2 hercules-53cdeba6f32d786001e195aeb88e3b5814991b4f.tar.xz hercules-53cdeba6f32d786001e195aeb88e3b5814991b4f.zip |
Revert "Mr. C Script Engine, I'm annoyed with this CI-only bug, could you please pretend you saw nothing?"
This reverts commit 08126b77ca9def4524e3d58a48e7943263b29222.
-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 200cc2e1d..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 (i1 < 0) { ShowDebug("Invalid left shift op=%s i1=%d i2=%d - This is fatal\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: |