mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(clang): fix build on version 7 (#1391)
Remove unused private fields
This commit is contained in:
@@ -1919,7 +1919,7 @@ class FlameLeviathanPursuedTargetSelector
|
||||
};
|
||||
|
||||
public:
|
||||
explicit FlameLeviathanPursuedTargetSelector(Unit* unit) : _me(unit) {};
|
||||
explicit FlameLeviathanPursuedTargetSelector() {};
|
||||
|
||||
bool operator()(WorldObject* target) const
|
||||
{
|
||||
@@ -1949,9 +1949,6 @@ class FlameLeviathanPursuedTargetSelector
|
||||
|
||||
return !playerFound;
|
||||
}
|
||||
|
||||
private:
|
||||
Unit const* _me;
|
||||
};
|
||||
|
||||
class spell_pursue : public SpellScriptLoader
|
||||
@@ -1965,7 +1962,7 @@ class spell_pursue : public SpellScriptLoader
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
targets.remove_if(FlameLeviathanPursuedTargetSelector(GetCaster()));
|
||||
targets.remove_if(FlameLeviathanPursuedTargetSelector());
|
||||
if (targets.empty())
|
||||
{
|
||||
if (Creature* caster = GetCaster()->ToCreature())
|
||||
|
||||
Reference in New Issue
Block a user