From dc8edb64167417bedd4d4fdb96bf13fe137b9971 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 28 Sep 2008 06:47:19 +0000 Subject: [PATCH] Adding null pointer check (followup to r13240). git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13243 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/clif.c b/src/map/clif.c index 6036cd132f..140c8b158b 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -2399,7 +2399,7 @@ void clif_changelook(struct block_list *bl,int type,int val) } // prevent leaking the presence of GM-hidden objects - if( sc->option&OPTION_INVISIBLE ) + if( sc && sc->option&OPTION_INVISIBLE ) target = SELF; #if PACKETVER < 4