summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 20:39:13 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 20:39:13 +0000
commitc70b7c7c843cc9b857b8a1e283107eeddc576ee8 (patch)
treee37109a69d61453a5e048735494982c737ec15dc /src
parentd0afc446ff9605e3d0488d65c2ce2c60cac5828c (diff)
downloadhercules-c70b7c7c843cc9b857b8a1e283107eeddc576ee8.tar.gz
hercules-c70b7c7c843cc9b857b8a1e283107eeddc576ee8.tar.bz2
hercules-c70b7c7c843cc9b857b8a1e283107eeddc576ee8.tar.xz
hercules-c70b7c7c843cc9b857b8a1e283107eeddc576ee8.zip
- Fixed a logic error that was likely the cause of pet loot drops not working.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6412 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/pet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 745bae5e2..62161dd87 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -1120,14 +1120,14 @@ int pet_lootitem_drop(struct pet_data *pd,struct map_session_data *sd)
ditem = ers_alloc(item_drop_ers, struct item_drop);
memcpy(&ditem->item_data, it, sizeof(struct item));
ditem->next = dlist->item;
- dlist->item = ditem->next;
+ dlist->item = ditem;
}
}
else {
ditem = ers_alloc(item_drop_ers, struct item_drop);
memcpy(&ditem->item_data, it, sizeof(struct item));
ditem->next = dlist->item;
- dlist->item = ditem->next;
+ dlist->item = ditem;
}
}
//The smart thing to do is use pd->loot->max (thanks for pointing it out, Shinomori)