Skip to content

Commit

Permalink
Compiler: Fix various warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa authored and killerwife committed May 5, 2024
1 parent aae1920 commit c1ce7bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/AI/BaseAI/CreatureAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/game/AI/BaseAI/UnitAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/game/Spells/Spell.h
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,7 @@ namespace MaNGOS
if (itr->getSource()->IsAOEImmune())
continue;
break;
default: break;
}

switch (i_TargetType)
Expand Down

1 comment on commit c1ce7bd

@killerwife
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To give credit where credit is due, nice separation of commits on your PR. Makes it super easy to port.

Please sign in to comment.