summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-24 17:50:42 -0300
committershennetsind <ind@henn.et>2014-02-24 17:50:42 -0300
commit3c87f3a57294b41a0c3c6af953a37ffcad9c8f19 (patch)
treef87fa67eb3adfd0679c47d19c66eac005c1b3cce /src/map/intif.c
parent24551d9a2d9ba7e275c4dfe940a5acb941670cc5 (diff)
downloadhercules-3c87f3a57294b41a0c3c6af953a37ffcad9c8f19.tar.gz
hercules-3c87f3a57294b41a0c3c6af953a37ffcad9c8f19.tar.bz2
hercules-3c87f3a57294b41a0c3c6af953a37ffcad9c8f19.tar.xz
hercules-3c87f3a57294b41a0c3c6af953a37ffcad9c8f19.zip
Fixed console parse gm command crash on select commands
Also fixed an issue with socket flushing Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c2
1 files changed, 1 insertions, 1 deletions
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);