diff options
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 244bbd0..2ca7e68 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -243,7 +243,7 @@ int clif_send_sub(struct block_list *bl, va_list ap) break; } - if (sd) { + if (session[sd->fd] != NULL) { if (WFIFOP(sd->fd,0) == buf) { printf("WARNING: Invalid use of clif_send function\n"); printf(" Packet x%4x use a WFIFO of a player instead of to use a buffer.\n", WBUFW(buf,0)); |