summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorediejohnny <ediejohnny@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-02-08 22:58:50 +0000
committershennetsind <ind@henn.et>2013-04-11 15:31:44 -0300
commitc6c82fdf4120a08a860068f99bcc3ea5b338dd58 (patch)
treeed85034810231a74e24454cd874062f23e911d9a
parent5852d650d32246509b7c6828c705d0d5787c6872 (diff)
downloadhercules-c6c82fdf4120a08a860068f99bcc3ea5b338dd58.tar.gz
hercules-c6c82fdf4120a08a860068f99bcc3ea5b338dd58.tar.bz2
hercules-c6c82fdf4120a08a860068f99bcc3ea5b338dd58.tar.xz
hercules-c6c82fdf4120a08a860068f99bcc3ea5b338dd58.zip
Fixed "sscanf" script command related at bug:7166.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17124 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 3e51859d1..f55f9602a 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -14138,12 +14138,12 @@ BUILDIN_FUNC(sscanf){
if(sscanf(str, buf, ref_str)==0){
break;
}
- set_reg(st, sd, add_str(buf_p), buf_p, (void *)(ref_str), reference_getref(data));
- }else{ // Number
+ set_reg(st, sd, reference_uid( reference_getid(data), reference_getindex(data) ), buf_p, (void *)(ref_str), reference_getref(data));
+ } else { // Number
if(sscanf(str, buf, &ref_int)==0){
break;
}
- set_reg(st, sd, add_str(buf_p), buf_p, (void *)__64BPRTSIZE(ref_int), reference_getref(data));
+ set_reg(st, sd, reference_uid( reference_getid(data), reference_getindex(data) ), buf_p, (void *)__64BPRTSIZE(ref_int), reference_getref(data));
}
arg++;