diff options
author | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-06-23 08:54:12 +0200 |
---|---|---|
committer | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-06-23 18:03:16 +0200 |
commit | b210bb37130087d9a25a61dfb1b8baa60540c12c (patch) | |
tree | 2bd93f0a254f0d16a78c497817c9badb5d4b36b0 /src/server/game/Spells/Spell.cpp | |
parent | dc41aae0427faecef57b831f3a2ed735a9369dd7 (diff) |
Core/Misc: Replace Trinity::make_unique with std (#24869)
(cherry picked from commit bab5fd87a34d92737e92d0850be05890a5ce8e24)
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index b6c7a94aa68..a03600a0d74 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -5505,7 +5505,7 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint float objSize = target->GetCombatReach(); float range = m_spellInfo->GetMaxRange(true, unitCaster, this) * 1.5f + objSize; // can't be overly strict - m_preGeneratedPath = Trinity::make_unique<PathGenerator>(unitCaster); + m_preGeneratedPath = std::make_unique<PathGenerator>(unitCaster); m_preGeneratedPath->SetPathLengthLimit(range); // first try with raycast, if it fails fall back to normal path @@ -8090,7 +8090,7 @@ WorldObjectSpellTargetCheck::WorldObjectSpellTargetCheck(WorldObject* caster, Wo _targetSelectionType(selectionType), _condSrcInfo(nullptr), _condList(condList) { if (condList) - _condSrcInfo = Trinity::make_unique<ConditionSourceInfo>(nullptr, caster); + _condSrcInfo = std::make_unique<ConditionSourceInfo>(nullptr, caster); } WorldObjectSpellTargetCheck::~WorldObjectSpellTargetCheck() |