summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/pet.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 9574c5112..ebac81f20 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/04/30
+ * Fixed a logic error that was likely the cause of pet loot drops not
+ working. [Skotlex]
* If someone is expulsed from a guild while the guild storage is open, it
will be auto-closed now. [Skotlex]
* Modified battle_consume_ammo to prevent consuming multiple arrows on
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)