Fixed a warning related to [[fallthrough]]

Follow up to 61c2480

Thanks to @Pokye
This commit is contained in:
Lemongrass3110 2023-12-29 11:49:41 +01:00
parent afbfd13606
commit 9c06340f3a

View File

@ -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)))