summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-31 20:38:01 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-31 20:38:01 +0000
commit82a23a3bd4ee9a350acbc22e2a2bf2f4409c6975 (patch)
tree80549eb09b8d6c527c483404d8455adddd132675 /src
parenta6095fa832df5260845fdc2063acbb450fbc415c (diff)
downloadhercules-82a23a3bd4ee9a350acbc22e2a2bf2f4409c6975.tar.gz
hercules-82a23a3bd4ee9a350acbc22e2a2bf2f4409c6975.tar.bz2
hercules-82a23a3bd4ee9a350acbc22e2a2bf2f4409c6975.tar.xz
hercules-82a23a3bd4ee9a350acbc22e2a2bf2f4409c6975.zip
Fixed bug with banding, super mega ultra thanks to MarkZD for going after it.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16188 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 970029302..0d89f0118 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -8781,15 +8781,12 @@ int status_change_end_(struct block_list* bl, enum sc_type type, int tid, const
}
break;
case SC_BANDING:
- {
- struct skill_unit_group *group;
- if(sce->val4)
- {
- group = skill_id2group(sce->val4);
+ if(sce->val4) {
+ struct skill_unit_group *group = skill_id2group(sce->val4);
sce->val4 = 0;
- skill_delunitgroup(group);
+ if( group )
+ skill_delunitgroup(group);
}
- }
break;
case SC_CURSEDCIRCLE_ATKER:
if( sce->val3 )