From b1571cd062e4e85e41bde4a12e32c0eb3d595d1b Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Mon, 3 Apr 2023 17:23:48 -0400 Subject: [PATCH] [Cleanup] Wake The Dead argument was named the same as a member variable in Mob (#3214) # Notes - Member variable is also named `target`. --- zone/aa.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zone/aa.cpp b/zone/aa.cpp index edee923eb..2ff5e9d0a 100644 --- a/zone/aa.cpp +++ b/zone/aa.cpp @@ -285,7 +285,7 @@ void Mob::TypesTemporaryPets(uint32 typesid, Mob *targ, const char *name_overrid delete made_npc; } -void Mob::WakeTheDead(uint16 spell_id, Corpse *corpse_to_use, Mob *target, uint32 duration) { +void Mob::WakeTheDead(uint16 spell_id, Corpse *corpse_to_use, Mob *tar, uint32 duration) { /* SPA 299 Wake The Dead, 'animateDead' should be temp pet, always spawns 1 pet from corpse, max value is duration @@ -489,8 +489,8 @@ void Mob::WakeTheDead(uint16 spell_id, Corpse *corpse_to_use, Mob *target, uint3 swarm_pet_npc->GetSwarmInfo()->owner_id = GetID(); //give the pets somebody to "love" - if (target != nullptr) { - swarm_pet_npc->AddToHateList(target, 10000, 1000); + if (tar != nullptr) { + swarm_pet_npc->AddToHateList(tar, 10000, 1000); swarm_pet_npc->GetSwarmInfo()->target = 0; } @@ -503,8 +503,8 @@ void Mob::WakeTheDead(uint16 spell_id, Corpse *corpse_to_use, Mob *target, uint3 } //the target of these swarm pets will take offense to being cast on... - if (target != nullptr) - target->AddToHateList(this, 1, 0); + if (tar != nullptr) + tar->AddToHateList(this, 1, 0); // The other pointers we make are handled elsewhere. delete made_npc;