summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-06-23 00:27:41 +0200
committerDennis Friis <peavey@inspircd.org>2009-06-25 01:13:20 +0200
commit85f88cd23756be9be2028e0ca13cf1449e38c858 (patch)
tree5faf807e3c2decacd72b1f1165ee3e01cc2dadd6 /src/map
parent4b825f68fa8e8ec86d6aa1694f629ed348fe50f1 (diff)
downloadtmwa-85f88cd23756be9be2028e0ca13cf1449e38c858.tar.gz
tmwa-85f88cd23756be9be2028e0ca13cf1449e38c858.tar.bz2
tmwa-85f88cd23756be9be2028e0ca13cf1449e38c858.tar.xz
tmwa-85f88cd23756be9be2028e0ca13cf1449e38c858.zip
Fix a crash on mapexit derived from ea stable.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c2
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));