aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/Spell.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-04-06 17:46:58 +0200
committerShauren <shauren.trinity@gmail.com>2023-04-06 17:46:58 +0200
commit7b310802583a96dd32841bc396a119fca833e2d4 (patch)
tree990da6afe067b13ad0f24e33ed33c15adc5ad55d /src/server/game/Spells/Spell.cpp
parent74c280da9eac16c5d4a875ff2ea5aa30034ff1dd (diff)
Core/Misc: Modernize code a bit by replacing std::tie with either structured bindings or operator<=>
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r--src/server/game/Spells/Spell.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index d903c5c9e45..daf57d6a557 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -6974,8 +6974,7 @@ SpellCastResult Spell::CheckRange(bool strict) const
if (!strict && m_casttime == 0)
return SPELL_CAST_OK;
- float minRange, maxRange;
- std::tie(minRange, maxRange) = GetMinMaxRange(strict);
+ auto [minRange, maxRange] = GetMinMaxRange(strict);
// dont check max_range to strictly after cast
if (m_spellInfo->RangeEntry && m_spellInfo->RangeEntry->Flags != SPELL_RANGE_MELEE && !strict)