summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-30 12:21:59 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-30 12:21:59 +0000
commitde43fa0f73be01080bd11c08adbfb7c158324c81 (patch)
tree659710fa7006be13c8f30ca9b05d0101336382f2 /src/map/script.c
parent58024c832da023fe835b41bb2d35c17f7ad9f858 (diff)
downloadhercules-de43fa0f73be01080bd11c08adbfb7c158324c81.tar.gz
hercules-de43fa0f73be01080bd11c08adbfb7c158324c81.tar.bz2
hercules-de43fa0f73be01080bd11c08adbfb7c158324c81.tar.xz
hercules-de43fa0f73be01080bd11c08adbfb7c158324c81.zip
- Removed copyarray; functionality when running set; or assigning variables (bugreport:5675)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16017 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index ca1659a90..6665a72b8 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5094,13 +5094,13 @@ BUILDIN_FUNC(set)
{
TBL_PC* sd = NULL;
struct script_data* data;
- struct script_data* datavalue;
+ //struct script_data* datavalue;
int num;
const char* name;
char prefix;
data = script_getdata(st,2);
- datavalue = script_getdata(st,3);
+ //datavalue = script_getdata(st,3);
if( !data_isreference(data) )
{
ShowError("script:set: not a variable\n");
@@ -5123,6 +5123,7 @@ BUILDIN_FUNC(set)
}
}
+#if 0
if( data_isreference(datavalue) )
{// the value being referenced is a variable
const char* namevalue = reference_getname(datavalue);
@@ -5148,6 +5149,7 @@ BUILDIN_FUNC(set)
return buildin_copyarray(st);
}
}
+#endif
if( is_string_variable(name) )
set_reg(st,sd,num,name,(void*)script_getstr(st,3),script_getref(st,2));