diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |