[BugFix] Remove potential nullptrs in Virus Code (#1658)

This commit is contained in:
KayenEQ
2021-10-31 01:06:32 -04:00
committed by GitHub
parent 9e7a763482
commit 9af7122b1d
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -8591,6 +8591,11 @@ void Mob::VirusEffectProcess()
void Mob::SpreadVirusEffect(int32 spell_id, uint32 caster_id, int32 buff_tics_remaining)
{
Mob *caster = entity_list.GetMob(caster_id);
if (!caster) {
return;
}
std::vector<Mob *> targets_in_range = entity_list.GetTargetsForVirusEffect(
this,
caster,