diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index bc1fecf168..ac9f2f6002 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 fddf51169d..8fc6ad3f5d 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; }