summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-02 04:26:34 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-02 04:26:34 +0000
commit9b5c358e45804e93eb9e6a9a33a9f8d3cfb4a8eb (patch)
treefd182f66b8d42872dc5aa972448c1256b1314df4 /src/map/clif.c
parentc06b6f595d99b11e28e044377edf76ceb19f535c (diff)
downloadhercules-9b5c358e45804e93eb9e6a9a33a9f8d3cfb4a8eb.tar.gz
hercules-9b5c358e45804e93eb9e6a9a33a9f8d3cfb4a8eb.tar.bz2
hercules-9b5c358e45804e93eb9e6a9a33a9f8d3cfb4a8eb.tar.xz
hercules-9b5c358e45804e93eb9e6a9a33a9f8d3cfb4a8eb.zip
* Added crash check for Ice Wall
- reduce mob_data->size variable to 1 bytes - change from if-else to switch statements in buildin_strmobinfo git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1020 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-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 288ac3b28..87aa1ff5e 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3887,7 +3887,7 @@ int clif_clearchar_skillunit(struct skill_unit *unit,int fd)
WFIFOW(fd, 0)=0x120;
WFIFOL(fd, 2)=unit->bl.id;
WFIFOSET(fd,packet_len_table[0x120]);
- if(unit->group->skill_id == WZ_ICEWALL)
+ if(unit->group && unit->group->skill_id == WZ_ICEWALL)
clif_set0192(fd,unit->bl.m,unit->bl.x,unit->bl.y,unit->val2);
return 0;