summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index b70ff9634..cfe0ce1b0 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -2196,9 +2196,9 @@ int get_val(struct script_state* st, struct script_data* data)
break;
case '#':
if( name[1] == '#' )
- data->u.str = pc_readaccountreg2str(sd, name);// global
+ data->u.num = pc_readaccountreg2(sd, name);// global
else
- data->u.str = pc_readaccountregstr(sd, name);// local
+ data->u.num = pc_readaccountreg(sd, name);// local
break;
case '.':
{