diff options
author | Haru <haru@dotalux.com> | 2015-05-17 23:07:15 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-05-17 23:07:15 +0200 |
commit | ab6adbcc802233ced064ae75a5f11695a4140fb8 (patch) | |
tree | adff4aac47452d6d62e07f4b1fa4f67b91dcff73 /src/map/pc.c | |
parent | 53c8d6755372b34f0f6b53433b57fa061e1cc7a8 (diff) | |
download | hercules-ab6adbcc802233ced064ae75a5f11695a4140fb8.tar.gz hercules-ab6adbcc802233ced064ae75a5f11695a4140fb8.tar.bz2 hercules-ab6adbcc802233ced064ae75a5f11695a4140fb8.tar.xz hercules-ab6adbcc802233ced064ae75a5f11695a4140fb8.zip |
Follow-up to 5be01dc
Fixed a swapped-variable typo. Special thanks to Michieru
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 00c09b108..4b372ebc5 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -3578,11 +3578,11 @@ int pc_bonus4(struct map_session_data *sd,int type,int type2,int type3,int type4 ShowWarning("pc_bonus4 (Add Effect): invalid duration %d. Valid range: [0:%d].\n", val, UINT16_MAX); duration = (val < 0 ? 0 : UINT16_MAX); } else { - duration = (uint16)type4; + duration = (uint16)val; } pc->bonus_addeff(sd->addeff, ARRAYLENGTH(sd->addeff), (sc_type)type2, - sd->state.lr_flag!=2?type3:0, sd->state.lr_flag==2?type3:0, val, duration); + sd->state.lr_flag!=2?type3:0, sd->state.lr_flag==2?type3:0, type4, duration); } break; |