diff options
author | ediejohnny <ediejohnny@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2013-02-08 22:58:50 +0000 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-11 15:31:44 -0300 |
commit | c6c82fdf4120a08a860068f99bcc3ea5b338dd58 (patch) | |
tree | ed85034810231a74e24454cd874062f23e911d9a /src/map/script.c | |
parent | 5852d650d32246509b7c6828c705d0d5787c6872 (diff) | |
download | hercules-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
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 6 |
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++; |