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 79ca0e227..bcccadfab 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -256,7 +256,7 @@ int clif_send_sub(struct block_list *bl, va_list ap) break; } - if (sd) { + if ((sd != NULL) && (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)); |