diff options
-rw-r--r-- | src/map/parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/parse.c b/src/map/parse.c index 60db879..38e42f3 100644 --- a/src/map/parse.c +++ b/src/map/parse.c @@ -177,6 +177,8 @@ void map_parse_homun_say(int fd) char message[500]; TBL_PC* sd = (TBL_PC*)session[fd]->session_data; + if (!sd) + return; const int len = RFIFOW(fd, 2); if (len > 500 || len < 6) return; |