summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-05 22:03:08 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-05 22:03:08 +0000
commit7572f8b6cc524460a49049d166fcb2e37e4f448f (patch)
tree232b81aafab971b556de28c5511c1bfaf41fe0a4 /src
parent0a2c2cb36b954616baa186fa79fa592deb77fd93 (diff)
downloadhercules-7572f8b6cc524460a49049d166fcb2e37e4f448f.tar.gz
hercules-7572f8b6cc524460a49049d166fcb2e37e4f448f.tar.bz2
hercules-7572f8b6cc524460a49049d166fcb2e37e4f448f.tar.xz
hercules-7572f8b6cc524460a49049d166fcb2e37e4f448f.zip
Fixed another crash
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@471 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c6
1 files changed, 6 insertions, 0 deletions
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)