aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellScript.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-05-27 15:51:58 +0200
committerShauren <shauren.trinity@gmail.com>2022-03-10 21:29:07 +0100
commit86e77891602797be24c30fe7dfad7ed484a4fcf0 (patch)
treefb629918bb1881f5f0db3bd81f85dcfe3a2455e8 /src/server/game/Spells/SpellScript.h
parentb5d46ec5adb615994e9bdff9455189e7ffcd72da (diff)
Core/Scripts: Allow spell script ValidateSpellInfo to work with any container type
(cherry picked from commit f2f0aeb562dfc1a78b04d13a14e3c37a58367619)
Diffstat (limited to 'src/server/game/Spells/SpellScript.h')
-rw-r--r--src/server/game/Spells/SpellScript.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h
index 04809e46d4e..b415be64c24 100644
--- a/src/server/game/Spells/SpellScript.h
+++ b/src/server/game/Spells/SpellScript.h
@@ -178,16 +178,16 @@ class TC_GAME_API _SpellScript
}
private:
- template <class InputIt>
- static bool _ValidateSpellInfo(InputIt first, InputIt last)
+ template<typename Iterator>
+ static bool _ValidateSpellInfo(Iterator begin, Iterator end)
{
bool allValid = true;
- while (first != last)
+ while (begin != end)
{
- if (!_ValidateSpellInfo(*first))
+ if (!_ValidateSpellInfo(*begin))
allValid = false;
- ++first;
+ ++begin;
}
return allValid;
}