summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index a0f652f2b..dba16f881 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -1013,8 +1013,10 @@ int pet_lootitem_drop(struct pet_data *pd,struct map_session_data *sd)
memcpy(&ditem->item_data, it, sizeof(struct item));
ditem->next = dlist->item;
dlist->item = ditem;
- } else
- log_pick_pc(sd, "P", it->nameid, it->amount, it);
+ } else {
+ if (log_config.enable_logs & LOG_PLAYER_ITEMS)
+ log_pick_pc(sd, "P", it->nameid, it->amount, it);
+ }
}
else {
ditem = ers_alloc(item_drop_ers, struct item_drop);