From ab6adbcc802233ced064ae75a5f11695a4140fb8 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 17 May 2015 23:07:15 +0200 Subject: Follow-up to 5be01dc Fixed a swapped-variable typo. Special thanks to Michieru Signed-off-by: Haru --- src/map/pc.c | 4 ++-- 1 file 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; -- cgit v1.2.3-60-g2f50