diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/pet.c | 4 |
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)
|