summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-02 13:49:18 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-02 13:49:18 +0000
commit02afe4bb98bb01bf52781a5673b190cb1c491810 (patch)
tree89e23a92ce7c208ec323d39f08b4aa635b4a6179 /src/map/mob.c
parent3fd46a04bd232cc9cfa49b161744ef0713b53fbb (diff)
downloadhercules-02afe4bb98bb01bf52781a5673b190cb1c491810.tar.gz
hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.tar.bz2
hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.tar.xz
hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.zip
- Fixed item pickup not picking anything unless you were in a party with item distribution set o.O
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5423 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 964506f53..c2f9680ca 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2079,7 +2079,9 @@ static void mob_item_drop(struct mob_data *md, unsigned int tick, struct delay_i
ditem->first_sd->state.autoloot >= 10000) //Fetch 100% drops
) { //Autoloot.
if (party_share_loot(
- party_search(ditem->first_sd->status.party_id),
+ ditem->first_sd->status.party_id?
+ party_search(ditem->first_sd->status.party_id):
+ NULL,
ditem->first_sd,&ditem->item_data)
) {
aFree(ditem);