mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
chore(Apps/Codestyle): add new codestyle checks for pointers and range loops (#19841)
* chore(Apps/Codestyle): add new codestyle checks for pointers and range loops * revert a typo
This commit is contained in:
@@ -2657,7 +2657,7 @@ bool Unit::GetMeleeAttackPoint(Unit* attacker, Position& pos)
|
||||
|
||||
double attackerSize = attacker->GetCollisionRadius();
|
||||
|
||||
for (const auto& otherAttacker: attackers)
|
||||
for (auto const& otherAttacker: attackers)
|
||||
{
|
||||
// if the otherAttacker is not valid, skip
|
||||
if (!otherAttacker || otherAttacker->GetGUID() == attacker->GetGUID() ||
|
||||
|
||||
Reference in New Issue
Block a user