diff options
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index c7d5b87f0..0ad272d1d 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -3820,7 +3820,7 @@ int pc_additem(struct map_session_data *sd,struct item *item_data,int amount,e_l } } } - + if( i >= MAX_INVENTORY ) { i = pc_search_inventory(sd,0); @@ -3836,6 +3836,10 @@ int pc_additem(struct map_session_data *sd,struct item *item_data,int amount,e_l sd->inventory_data[i] = data; clif_additem(sd,i,amount,0); } +#ifdef NSI_UNIQUE_ID + if( !itemdb_isstackable2(data) && !item_data->nsiuid ) + sd->status.inventory[i].nsiuid = itemdb_nsiuid(0,0); +#endif log_pick_pc(sd, log_type, amount, &sd->status.inventory[i]); sd->weight += w; |