diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-01-06 06:00:30 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-01-06 06:00:30 +0000 |
commit | 5d4fc21ddfe38fc84890467468f4e2d1cf1ce826 (patch) | |
tree | cd3bb91c8a6de8281b21fbf38758f1eeba54c290 /src/map | |
parent | 89a2217fe54bce2779485f633c9a4e64d9271433 (diff) | |
download | hercules-5d4fc21ddfe38fc84890467468f4e2d1cf1ce826.tar.gz hercules-5d4fc21ddfe38fc84890467468f4e2d1cf1ce826.tar.bz2 hercules-5d4fc21ddfe38fc84890467468f4e2d1cf1ce826.tar.xz hercules-5d4fc21ddfe38fc84890467468f4e2d1cf1ce826.zip |
* Fixed script command 'deletearray' deleting incorrect amount of array elements from arrays with empty elements (bugreport:4628).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14652 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 559b19e25..d6b083fa3 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5147,7 +5147,8 @@ BUILDIN_FUNC(deletearray) return 0;// no player attached } - end = getarraysize(st, id, start, is_string_variable(name), reference_getref(data)); + end = SCRIPT_MAX_ARRAYSIZE; + if( start >= end ) return 0;// nothing to free |