Skip to content

Commit

Permalink
Build fix for horrendous, outdated, non-standards-compliant compilers…
Browse files Browse the repository at this point in the history
…. Such as the one in VS 2013. I hate VS 2013.

Closes TrinityCore#17260.
  • Loading branch information
Treeston committed Jun 1, 2016
1 parent b1aca1d commit 321d354
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/game/AI/PlayerAI/PlayerAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class TC_GAME_API PlayerAI : public UnitAI
protected:
struct TargetedSpell : public std::pair<Spell*, Unit*>
{
using std::pair<Spell*, Unit*>::pair;
TargetedSpell() : pair<Spell*, Unit*>() { }
TargetedSpell(Spell* first, Unit* second) : pair<Spell*, Unit*>(first, second) { }
explicit operator bool() { return !!first; }
};
typedef std::pair<TargetedSpell, uint32> PossibleSpell;
Expand Down

0 comments on commit 321d354

Please sign in to comment.