Issue information

Issue ID
#3239
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jun 13, 2009 12:24
Last Post
Hercules Elf Bot
Jun 13, 2009 12:24
Confirmation
N/A

Hercules Elf Bot - Jun 13, 2009 12:24

Originally posted by [b]Ai4rei[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3239

mail_deliveryfail assumes an item always to be attached, does log_pick_pc (from r12910, silently fails in should_log_item) and pc_additem (from r11855, silently fails in pc_additem).

CODE
void mail_deliveryfail(struct map_session_data *sd, struct mail_message *msg)
{
    nullpo_retv(sd);
    nullpo_retv(msg);

    // Item recieve (due to failure)
    if(log_config.enable_logs&0x2000)
        log_pick_pc(sd, "E", msg->item.nameid, msg->item.amount, &msg->item);

    pc_additem(sd, &msg->item, msg->item.amount);


This post has been edited by Ai4rei: Jun 13 2009, 05:24 AM