summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-13 15:55:15 +0100
committerHaru <haru@dotalux.com>2015-12-13 15:55:15 +0100
commitd4737c7141d936133493a79bde34af944e3d0c7c (patch)
tree9743de32f9ff7f283eff1501d9e3b6ed1252dd87 /src
parentfae7b9e447d4b3d4914475a4e57b561d06deeb25 (diff)
downloadhercules-d4737c7141d936133493a79bde34af944e3d0c7c.tar.gz
hercules-d4737c7141d936133493a79bde34af944e3d0c7c.tar.bz2
hercules-d4737c7141d936133493a79bde34af944e3d0c7c.tar.xz
hercules-d4737c7141d936133493a79bde34af944e3d0c7c.zip
Fixed an issue in the bonus2 bAddMonsterDropChainItem implementation
- The item_chain and race arguments were swapped. - Thanks to pengc2010 for pointing it out Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index b3ca02843..577123628 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3603,13 +3603,13 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val)
break;
case SP_ADD_MONSTER_DROP_CHAINITEM:
{
- uint32 race_mask = map->race_id2mask(type2);
+ uint32 race_mask = map->race_id2mask(val);
if (race_mask == RCMASK_NONE) {
- ShowWarning("pc_bonus2: SP_ADD_MONSTER_DROP_CHAINITEM: Invalid Race (%d)\n", type2);
+ ShowWarning("pc_bonus2: SP_ADD_MONSTER_DROP_CHAINITEM: Invalid Race (%d)\n", val);
break;
}
if (sd->state.lr_flag != 2)
- pc->bonus_item_drop(sd->add_drop, ARRAYLENGTH(sd->add_drop), 0, val, race_mask, 10000);
+ pc->bonus_item_drop(sd->add_drop, ARRAYLENGTH(sd->add_drop), 0, type2, race_mask, 10000);
}
break;
#ifdef RENEWAL