summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorEmistry <Equinox1991@gmail.com>2015-09-06 19:40:03 +0800
committerHaru <haru@dotalux.com>2015-12-20 20:44:27 +0100
commit6a0093b170719092e6c0f11b889353cd70b38313 (patch)
treecf02d7d61916414c4450c64a07e0616162c21bc8 /src/map/script.c
parent851e97a20701bf2800491690838f654a9a6638e6 (diff)
downloadhercules-6a0093b170719092e6c0f11b889353cd70b38313.tar.gz
hercules-6a0093b170719092e6c0f11b889353cd70b38313.tar.bz2
hercules-6a0093b170719092e6c0f11b889353cd70b38313.tar.xz
hercules-6a0093b170719092e6c0f11b889353cd70b38313.zip
*explode return array size.
http://herc.ws/board/topic/7489-explode-to-push-arraysize/ Closes #700 as merged Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index f438de3ab..fedfc895c 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -14967,6 +14967,8 @@ BUILDIN(explode)
script->set_reg(st, sd, reference_uid(id, start + k), name, (void*)temp, reference_getref(data));
aFree(temp);
+
+ script_pushint(st, k + 1);
return true;
}