summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-09-15 04:18:33 +0000
committerFate <fate-tmw@googlemail.com>2009-09-15 04:18:33 +0000
commitd7b6afc444c1fac508dd5cc4bdf7e4dfa57e50c2 (patch)
tree76038aa2226d3bf2d87c4b2d50e83ac0ad1cc248 /src/map/pc.c
parent1000c71d10076fcb51280d7bb90144e2570ba569 (diff)
downloadtmwa-d7b6afc444c1fac508dd5cc4bdf7e4dfa57e50c2.tar.gz
tmwa-d7b6afc444c1fac508dd5cc4bdf7e4dfa57e50c2.tar.bz2
tmwa-d7b6afc444c1fac508dd5cc4bdf7e4dfa57e50c2.tar.xz
tmwa-d7b6afc444c1fac508dd5cc4bdf7e4dfa57e50c2.zip
Logging fix and extension to include trade informaiton
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index b934e13..acec322 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5013,11 +5013,14 @@ int pc_damage(struct block_list *src,struct map_session_data *sd,int damage)
skill_gangsterparadise(sd,0);
}
- if (src->type == BL_PC) {
- MAP_LOG_PC(sd, "INJURED-BY PC%d FOR %d", ((struct map_session_data *)src)->status.char_id, damage);
- } else {
- MAP_LOG_PC(sd, "INJURED-BY MOB%d FOR %d", src->id, damage);
- }
+ if (src) {
+ if (src->type == BL_PC) {
+ MAP_LOG_PC(sd, "INJURED-BY PC%d FOR %d", ((struct map_session_data *)src)->status.char_id, damage);
+ } else {
+ MAP_LOG_PC(sd, "INJURED-BY MOB%d FOR %d", src->id, damage);
+ }
+ } else
+ MAP_LOG_PC(sd, "INJURED-BY null FOR %d", damage);
// �� ���Ă����瑫���~�߂�
if(sd->sc_data[SC_ENDURE].timer == -1 && !sd->special_state.infinite_endure)