Compare commits

..

2 Commits

Author SHA1 Message Date
Gent Semaj
57eb692226
Merge 2249b5381b into b12aecad63 2023-07-22 19:10:15 +00:00
gsemaj
2249b5381b
Fix seg fault with egg powers 2023-07-22 15:10:00 -04:00

View File

@ -274,6 +274,8 @@ void Abilities::useNPCSkill(EntityRef npc, int skillID, std::vector<ICombatant*>
SkillData* skill = &SkillTable[skillID];
std::vector<SkillResult> results = handleSkill(skill, 0, src, affected);
if(results.empty()) return; // no effect; no need for confirmation packets
size_t resultSize = results.back().size; // guaranteed to be the same for every item
if (!validOutVarPacket(sizeof(sP_FE2CL_NPC_SKILL_HIT), results.size(), resultSize)) {