diff options
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 5dd8250f2..8f016a6f8 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -13763,7 +13763,7 @@ BUILDIN_FUNC(explode) } while(str[i] != '\0') { - if(str[i] == delimiter && start < 127) { //break at delimiter but ignore after reaching last array index + if(str[i] == delimiter && start < SCRIPT_MAX_ARRAYSIZE-1) { //break at delimiter but ignore after reaching last array index temp[j] = '\0'; set_reg(st, sd, reference_uid(id, start++), name, (void*)temp, reference_getref(data)); j = 0; |