summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/script.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 6a858692a..19a2db65b 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2007/07/13
+ * Fixed yet another script engine typo, this time in 'copyarray' [ultramage]
2007/07/09
* Rev. 10872 Removed a comment I had placed on line 6879 in Skill.c. [L0ne_W0lf]
* Rev. 10870 Alchemist skill "AM_CANNIBALIZE" ("Summon_Flora") now [L0ne_W0lf]
diff --git a/src/map/script.c b/src/map/script.c
index a4e348083..bda159a47 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5649,7 +5649,7 @@ BUILDIN_FUNC(copyarray)
{// normal copy
for( i = 0; i < count; ++i )
{
- if( id2 + i < 128 )
+ if( idx2 + i < 128 )
v = get_val2(st, reference_uid(id2, idx2 + i), reference_getref(data2));
else// out of range - assume ""/0
v = (void*)(is_string_variable(name1) ? "" : 0);