diff options
author | Haru <haru@dotalux.com> | 2017-04-13 18:37:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 18:37:50 +0200 |
commit | ec17eb3e9d03b30596c52f6777847328f543a415 (patch) | |
tree | 822109acd197ddad22df515f1bfa3275993780a8 | |
parent | 494dd23baffec0c53d1bb3e4e474cad9366e7dbb (diff) | |
parent | b2c40d06b59b8dff0794c685a248e69a69034bb3 (diff) | |
download | hercules-ec17eb3e9d03b30596c52f6777847328f543a415.tar.gz hercules-ec17eb3e9d03b30596c52f6777847328f543a415.tar.bz2 hercules-ec17eb3e9d03b30596c52f6777847328f543a415.tar.xz hercules-ec17eb3e9d03b30596c52f6777847328f543a415.zip |
Merge pull request #1680 from mekolat/varfix2
add missing _pc in set_reg
-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); } |