summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-05-17 23:07:15 +0200
committerHaru <haru@dotalux.com>2015-05-17 23:07:15 +0200
commitab6adbcc802233ced064ae75a5f11695a4140fb8 (patch)
treeadff4aac47452d6d62e07f4b1fa4f67b91dcff73 /src
parent53c8d6755372b34f0f6b53433b57fa061e1cc7a8 (diff)
downloadhercules-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')
-rw-r--r--src/map/pc.c4
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;