From 7572f8b6cc524460a49049d166fcb2e37e4f448f Mon Sep 17 00:00:00 2001 From: amber Date: Sun, 5 Dec 2004 22:03:08 +0000 Subject: Fixed another crash git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@471 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog.txt | 2 ++ src/map/clif.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Changelog.txt b/Changelog.txt index e5b0d3e55..fb51be5cb 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,7 @@ Date Added 12/5 + * Fixed another crash sending updates to disconnected + clients [MouseJstr] * Fixed the range_check again to stop it from crashing servers [MouseJstr] * removed stubbed out unfinished atcommands as per Cameri [MouseJstr] diff --git a/src/map/clif.c b/src/map/clif.c index fb01d10fd..131efa67d 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3722,6 +3722,9 @@ void clif_getareachar_mob(struct map_session_data* sd,struct mob_data* md) int len; nullpo_retv(sd); nullpo_retv(md); + + if (session[sd->fd] == NULL) + return; if(md->state.state == MS_WALK){ len = clif_mob007b(md,WFIFOP(sd->fd,0)); @@ -3906,6 +3909,9 @@ int clif_01ac(struct block_list *bl) sd=va_arg(ap,struct map_session_data*); + if (sd == NULL || session[sd->fd] == NULL) + return 0; + switch(bl->type){ case BL_PC: if(sd==(struct map_session_data*)bl) -- cgit v1.2.3-70-g09d2