summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-08 19:24:48 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-08 19:24:48 +0000
commit1f8c922a8ffd8fb216c050b86fdbc4040e5780f6 (patch)
treeabb64c4c336461951245ff717dc88820a4e14dd2 /src/map/script.c
parent26659b5a9d4910fd960174690fe899111dd67ba6 (diff)
downloadhercules-1f8c922a8ffd8fb216c050b86fdbc4040e5780f6.tar.gz
hercules-1f8c922a8ffd8fb216c050b86fdbc4040e5780f6.tar.bz2
hercules-1f8c922a8ffd8fb216c050b86fdbc4040e5780f6.tar.xz
hercules-1f8c922a8ffd8fb216c050b86fdbc4040e5780f6.zip
* Fixed typo in 'deletearray' messing up the script engine
* Added a check to pc_skill() to prevent crashes on unknown skill ids git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10868 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index cfe0ce1b0..a4e348083 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5758,12 +5758,12 @@ BUILDIN_FUNC(deletearray)
if( is_string_variable(name) )
{
for( ; start < end; ++start )
- set_reg(st, sd, reference_uid(id, start), name, (void*)0, reference_getref(data));
+ set_reg(st, sd, reference_uid(id, start), name, (void *)"", reference_getref(data));
}
else
{
for( ; start < end; ++start )
- set_reg(st, sd, reference_uid(id, start), name, (void *)"", reference_getref(data));
+ set_reg(st, sd, reference_uid(id, start), name, (void*)0, reference_getref(data));
}
return 0;
}