From 858c0649f82e6f99ab711f3e22cea8a024f5a55d Mon Sep 17 00:00:00 2001
From: ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>
Date: Fri, 13 Jul 2007 18:29:28 +0000
Subject: Fixed yet another script engine typo, this time in 'copyarray'

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10878 54d463be-8e91-2dee-dedb-b68131a5f0ec
---
 Changelog-Trunk.txt | 2 ++
 src/map/script.c    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

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);
-- 
cgit v1.2.3-70-g09d2