summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-28 06:47:19 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-28 06:47:19 +0000
commit8014d6b251dfadbcadb8154297f7076efd2029cd (patch)
treea5f72da970da2fa1377a3e8b80b5a048ac56908e
parentf467a0497681d83af34907bbb33c6c7f117d6023 (diff)
downloadhercules-8014d6b251dfadbcadb8154297f7076efd2029cd.tar.gz
hercules-8014d6b251dfadbcadb8154297f7076efd2029cd.tar.bz2
hercules-8014d6b251dfadbcadb8154297f7076efd2029cd.tar.xz
hercules-8014d6b251dfadbcadb8154297f7076efd2029cd.zip
Adding null pointer check (followup to r13240).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13243 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 6036cd132..140c8b158 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