diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-30 20:39:13 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-30 20:39:13 +0000 |
commit | c70b7c7c843cc9b857b8a1e283107eeddc576ee8 (patch) | |
tree | e37109a69d61453a5e048735494982c737ec15dc | |
parent | d0afc446ff9605e3d0488d65c2ce2c60cac5828c (diff) | |
download | hercules-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
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/pet.c | 4 |
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)
|