summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-27 02:53:10 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-27 02:53:10 +0000
commit33794f0169fff0884af02c9487a8660572de94d5 (patch)
tree685ed6f7a298c97ee3dcb9eac62372de427975d9 /src/map/skill.c
parent787a29407c195be9054bb819d219eb43759f4720 (diff)
downloadhercules-33794f0169fff0884af02c9487a8660572de94d5.tar.gz
hercules-33794f0169fff0884af02c9487a8660572de94d5.tar.bz2
hercules-33794f0169fff0884af02c9487a8660572de94d5.tar.xz
hercules-33794f0169fff0884af02c9487a8660572de94d5.zip
* Added @changelook command for spriters to test view ID's
* Added a check to Pneuma to prevent crashing git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1004 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 2546e56e0..9ca9dd6b2 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5943,8 +5943,8 @@ int skill_unit_onplace(struct skill_unit *src,struct block_list *bl,unsigned int
if(sc_data) {
if (sc_data[type].timer==-1)
status_change_start(bl,type,sg->skill_lv,(int)src,0,0,0,0);
- else if((unit2=(struct skill_unit *)sc_data[type].val2) && unit2 != src ){
- if(DIFF_TICK(sg->tick,unit2->group->tick)>0 )
+ else if((unit2 = (struct skill_unit *)sc_data[type].val2) && unit2 != src){
+ if(unit2->group && DIFF_TICK(sg->tick,unit2->group->tick) > 0)
status_change_start(bl,type,sg->skill_lv,(int)src,0,0,0,0);
ts->tick-=sg->interval;
}