aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-06-01 19:41:17 +0200
committertreeston <treeston.mmoc@gmail.com>2016-06-01 19:41:35 +0200
commit321d35417d39bd2531c63c63cd432cf86d84453f (patch)
tree7b51605026c4e395c39b1f81663ecb39f63e301e /src
parentb1aca1d1cfa60497275ff1e22124f89a50396239 (diff)
Build fix for horrendous, outdated, non-standards-compliant compilers. Such as the one in VS 2013. I hate VS 2013.
Closes #17260.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/PlayerAI/PlayerAI.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/AI/PlayerAI/PlayerAI.h b/src/server/game/AI/PlayerAI/PlayerAI.h
index 0a50f5995e7..18f65485161 100644
--- a/src/server/game/AI/PlayerAI/PlayerAI.h
+++ b/src/server/game/AI/PlayerAI/PlayerAI.h
@@ -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;