summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-11-03 07:43:50 -0200
committershennetsind <ind@henn.et>2014-11-03 07:43:50 -0200
commitfcb3ad0731907ab004928d5e21280aacdfe459bc (patch)
tree53dc3f44a4cb78c3303a8ee912a5c77abfab24db
parent468e13d4d12dadc9b2a1666f6d2303e30cf93d82 (diff)
downloadhercules-fcb3ad0731907ab004928d5e21280aacdfe459bc.tar.gz
hercules-fcb3ad0731907ab004928d5e21280aacdfe459bc.tar.bz2
hercules-fcb3ad0731907ab004928d5e21280aacdfe459bc.tar.xz
hercules-fcb3ad0731907ab004928d5e21280aacdfe459bc.zip
Added missing type check to skill_delunitgroup
Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 0fe4b99ea..31e281d93 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -15776,7 +15776,7 @@ int skill_delunitgroup(struct skill_unit_group *group, const char* file, int lin
return 0;
}
- if( !status->isdead(src) && ((TBL_PC*)src)->state.warping && !((TBL_PC*)src)->state.changemap ) {
+ if( src->type == BL_PC && !status->isdead(src) && ((TBL_PC*)src)->state.warping && !((TBL_PC*)src)->state.changemap ) {
switch( group->skill_id ) {
case BA_DISSONANCE:
case BA_POEMBRAGI: