summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-04-13 11:55:54 -0400
committergumi <mekolat@users.noreply.github.com>2017-04-13 11:55:54 -0400
commitb2c40d06b59b8dff0794c685a248e69a69034bb3 (patch)
tree822109acd197ddad22df515f1bfa3275993780a8 /src/map/script.c
parent494dd23baffec0c53d1bb3e4e474cad9366e7dbb (diff)
downloadhercules-b2c40d06b59b8dff0794c685a248e69a69034bb3.tar.gz
hercules-b2c40d06b59b8dff0794c685a248e69a69034bb3.tar.bz2
hercules-b2c40d06b59b8dff0794c685a248e69a69034bb3.tar.xz
hercules-b2c40d06b59b8dff0794c685a248e69a69034bb3.zip
add missing _pc in set_reg
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 1fa8dd1a6..8604b62f7 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -3446,7 +3446,7 @@ int set_reg(struct script_state *st, struct map_session_data *sd, int64 num, con
return 1;
case '#':
if (ref) {
- script->set_reg_ref_str(st, ref, num, name, str);
+ script->set_reg_pc_ref_str(st, ref, num, name, str);
} else if (name[1] == '#') {
pc_setaccountreg2str(sd, num, str);
} else {
@@ -3467,7 +3467,7 @@ int set_reg(struct script_state *st, struct map_session_data *sd, int64 num, con
return 1;
default:
if (ref) {
- script->set_reg_ref_str(st, ref, num, name, str);
+ script->set_reg_pc_ref_str(st, ref, num, name, str);
} else {
pc_setglobalreg_str(sd, num, str);
}
@@ -3508,7 +3508,7 @@ int set_reg(struct script_state *st, struct map_session_data *sd, int64 num, con
return 1;
case '#':
if (ref) {
- script->set_reg_ref_num(st, ref, num, name, val);
+ script->set_reg_pc_ref_num(st, ref, num, name, val);
} else if (name[1] == '#') {
pc_setaccountreg2(sd, num, val);
} else {
@@ -3529,7 +3529,7 @@ int set_reg(struct script_state *st, struct map_session_data *sd, int64 num, con
return 1;
default:
if (ref) {
- script->set_reg_ref_num(st, ref, num, name, val);
+ script->set_reg_pc_ref_num(st, ref, num, name, val);
} else {
pc_setglobalreg(sd, num, val);
}