summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-02 17:09:16 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-02 17:09:16 +0000
commit01402970c73b20574aa586b701d6975ace919e95 (patch)
tree3ab953c1a61d27c0e458fe7ef798a757e80f71ff /src/map/mob.c
parentce0efdf3bc23d208590f27cffc78d5043d24fbae (diff)
downloadhercules-01402970c73b20574aa586b701d6975ace919e95.tar.gz
hercules-01402970c73b20574aa586b701d6975ace919e95.tar.bz2
hercules-01402970c73b20574aa586b701d6975ace919e95.tar.xz
hercules-01402970c73b20574aa586b701d6975ace919e95.zip
- Added a missing memset on ers_alloc'ing mob loot which was making data from looted items fill in normal drop info.
- Some more work on the display of Brandish Spear... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5871 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 1125c3872..077fe7fa8 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1532,6 +1532,7 @@ static struct delay_item_drop* mob_setdropitem(int nameid, int qty, int m, int x
struct map_session_data* first_sd, struct map_session_data* second_sd, struct map_session_data* third_sd)
{
struct delay_item_drop *drop = ers_alloc(delay_drop_ers, struct delay_item_drop);
+ memset(&drop->item_data, 0, sizeof(struct item));
drop->item_data.nameid = nameid;
drop->item_data.amount = qty;
drop->item_data.identify = !itemdb_isequip3(nameid);