Skip to content

Commit

Permalink
Merge pull request #797 from 4144/insertcard
Browse files Browse the repository at this point in the history
Return actual result from pc_insert_card.
  • Loading branch information
MishimaHaruna committed Oct 13, 2015
2 parents de47c77 + c2d3e21 commit c35b94d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/map/pc.c
Expand Up @@ -4112,7 +4112,10 @@ bool pc_can_insert_card(struct map_session_data* sd, int idx_card)
}

/*==========================================
* Append a card to an item ?
* Attempt to insert card into item.
* Return:
* 0 = fail
* 1 = success
*------------------------------------------*/
int pc_insert_card(struct map_session_data* sd, int idx_card, int idx_equip)
{
Expand Down Expand Up @@ -4143,6 +4146,7 @@ int pc_insert_card(struct map_session_data* sd, int idx_card, int idx_equip)
sd->status.inventory[idx_equip].card[i] = nameid;
logs->pick_pc(sd, LOG_TYPE_OTHER, 1, &sd->status.inventory[idx_equip],sd->inventory_data[idx_equip]);
clif->insert_card(sd,idx_equip,idx_card,0);
return 1;
}

return 0;
Expand Down

1 comment on commit c35b94d

@tmav94
Copy link

@tmav94 tmav94 commented on c35b94d Oct 14, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty

Please sign in to comment.