summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-27 22:04:11 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-27 22:04:11 +0000
commit9c7fb1a026d2d46c1ebc1eb7f5459dd648841706 (patch)
treeda46e1655766c08602d23e03aeb7ecd25e3acdea
parent908fb34a5f39a3b2eb99b77b3171714e60fc815b (diff)
downloadhercules-9c7fb1a026d2d46c1ebc1eb7f5459dd648841706.tar.gz
hercules-9c7fb1a026d2d46c1ebc1eb7f5459dd648841706.tar.bz2
hercules-9c7fb1a026d2d46c1ebc1eb7f5459dd648841706.tar.xz
hercules-9c7fb1a026d2d46c1ebc1eb7f5459dd648841706.zip
Fixed 'cleararray' not able to erase array entry 127 (bugreport:864)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12253 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/script.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index bc1fecf16..ac9f2f600 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2008/02/27
+ * Fixed 'cleararray' not able to erase array entry 127 (bugreport:864)
* Fixed @reloadmobdb producing memory leaks in pet db (bugreport:1030)
* Patched an unresolved case where knocking back a bard/dancer would
cause the mapserver to crash (bugreport:1043)
diff --git a/src/map/script.c b/src/map/script.c
index fddf51169..8fc6ad3f5 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -4853,7 +4853,7 @@ BUILDIN_FUNC(cleararray)
if( end > 127 )
end = 127;
- for( ; start < end; ++start )
+ for( ; start <= end; ++start )
set_reg(st, sd, reference_uid(id, start), name, v, script_getref(st,2));
return 0;
}