summaryrefslogtreecommitdiff
path: root/src/map/buyingstore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/buyingstore.c')
-rw-r--r--src/map/buyingstore.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/map/buyingstore.c b/src/map/buyingstore.c
index 6d8ed9acb..eddfa0127 100644
--- a/src/map/buyingstore.c
+++ b/src/map/buyingstore.c
@@ -367,13 +367,9 @@ void buyingstore_trade(struct map_session_data* sd, int account_id, unsigned int
zeny = amount*pl_sd->buyingstore.items[listidx].price;
// log
- if( log_config.enable_logs & LOG_BUYING_STORE )
- {
- log_pick_pc(sd, "B", nameid, -((int)amount), &sd->status.inventory[index]);
- log_pick_pc(pl_sd, "B", nameid, amount, &sd->status.inventory[index]);
- }
- if( log_config.zeny )
- log_zeny(sd, "B", pl_sd, zeny);
+ log_pick_pc(sd, LOG_TYPE_BUYING_STORE, nameid, -((int)amount), &sd->status.inventory[index]);
+ log_pick_pc(pl_sd, LOG_TYPE_BUYING_STORE, nameid, amount, &sd->status.inventory[index]);
+ log_zeny(sd, LOG_TYPE_BUYING_STORE, pl_sd, zeny);
// move item
pc_additem(pl_sd, &sd->status.inventory[index], amount);