diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-04-13 11:55:54 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-04-13 11:55:54 -0400 |
commit | b2c40d06b59b8dff0794c685a248e69a69034bb3 (patch) | |
tree | 822109acd197ddad22df515f1bfa3275993780a8 /src/map/script.c | |
parent | 494dd23baffec0c53d1bb3e4e474cad9366e7dbb (diff) | |
download | hercules-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.c | 8 |
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); } |