From c1ce7bd65aa14274b62a4874aca1aac6c87f2057 Mon Sep 17 00:00:00 2001 From: insunaa Date: Sun, 5 May 2024 14:42:36 +0200 Subject: [PATCH] Compiler: Fix various warnings --- src/game/AI/BaseAI/CreatureAI.h | 2 +- src/game/AI/BaseAI/UnitAI.h | 2 +- src/game/Spells/Spell.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/AI/BaseAI/CreatureAI.h b/src/game/AI/BaseAI/CreatureAI.h index 239cf548cf3..f2d89949655 100644 --- a/src/game/AI/BaseAI/CreatureAI.h +++ b/src/game/AI/BaseAI/CreatureAI.h @@ -56,7 +56,7 @@ class CreatureAI : public UnitAI void AddUnreachabilityCheck(); // use in constructor - CreatureSpellList const& GetSpellList() const; + CreatureSpellList const& GetSpellList() const override; void TimedFleeingEnded() override; diff --git a/src/game/AI/BaseAI/UnitAI.h b/src/game/AI/BaseAI/UnitAI.h index ba9992ae3c9..804d93c61d0 100644 --- a/src/game/AI/BaseAI/UnitAI.h +++ b/src/game/AI/BaseAI/UnitAI.h @@ -636,7 +636,7 @@ struct CreatureAIFactory : public SelectableAI UnitAI* Create(void*) const override; - int Permit(const Creature* c) const { return REAL_AI::Permissible(c); } + int Permit(const Creature* c) const override { return REAL_AI::Permissible(c); } }; enum Permitions diff --git a/src/game/Spells/Spell.h b/src/game/Spells/Spell.h index 8c63fda3dab..9738e1f9851 100644 --- a/src/game/Spells/Spell.h +++ b/src/game/Spells/Spell.h @@ -1241,6 +1241,7 @@ namespace MaNGOS if (itr->getSource()->IsAOEImmune()) continue; break; + default: break; } switch (i_TargetType)