From 3c87f3a57294b41a0c3c6af953a37ffcad9c8f19 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 24 Feb 2014 17:50:42 -0300 Subject: Fixed console parse gm command crash on select commands Also fixed an issue with socket flushing Signed-off-by: shennetsind --- src/map/intif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/intif.c') diff --git a/src/map/intif.c b/src/map/intif.c index 78940785e..6b39bd1a5 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -2125,7 +2125,7 @@ void intif_parse_MessageToFD(int fd) { int aid = RFIFOL(fd,8); struct map_session_data * sd = session[u_fd]->session_data; /* matching e.g. previous fd owner didn't dc during request or is still the same */ - if( sd->bl.id == aid ) { + if( sd && sd->bl.id == aid ) { char msg[512]; safestrncpy(msg, (char*)RFIFOP(fd,12), RFIFOW(fd,2) - 12); clif->message(u_fd,msg); -- cgit v1.2.3-70-g09d2