Fixed a warning related to [[fallthrough]]
Follow up to 61c2480 Thanks to @Pokye
This commit is contained in:
parent
afbfd13606
commit
9c06340f3a
@ -7348,12 +7348,14 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
|
||||
#endif
|
||||
status_set_hp(src, 1, 0);
|
||||
break;
|
||||
} else if (status_isdead(bl) && flag&1) { //Revive
|
||||
skill_area_temp[0]++; //Count it in, then fall-through to the Resurrection code.
|
||||
skill_lv = 3; //Resurrection level 3 is used
|
||||
[[fallthrough]];
|
||||
} else //Invalid target, skip resurrection.
|
||||
} else if (!(status_isdead(bl) && flag&1)) {
|
||||
//Invalid target, skip resurrection.
|
||||
break;
|
||||
}
|
||||
//Revive
|
||||
skill_area_temp[0]++; //Count it in, then fall-through to the Resurrection code.
|
||||
skill_lv = 3; //Resurrection level 3 is used
|
||||
[[fallthrough]];
|
||||
|
||||
case ALL_RESURRECTION:
|
||||
if(sd && (map_flag_gvg2(bl->m) || map_getmapflag(bl->m, MF_BATTLEGROUND)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user