aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-07-27 19:37:57 +0200
committerShauren <shauren.trinity@gmail.com>2023-07-27 19:37:57 +0200
commit46b67ec20555d86340407926ad69979475b8668e (patch)
treed80682561fe694444de0f09c65e98e5b40527f30 /src/server/scripts
parentf94e341a0314bc956726e11dfb435e09b7ee696f (diff)
Core/Scripts: Fixed unsafe function pointer type casting in spell scripts
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp2
-rw-r--r--src/server/scripts/Spells/spell_shaman.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp
index 8546a606d64..3d9b5808204 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp
@@ -1460,7 +1460,7 @@ class spell_icc_harvest_blight_specimen : public SpellScript
// 72585 - Soul Missile
class spell_icc_soul_missile : public SpellScript
{
- void RelocateDest(SpellDestination& dest)
+ static void RelocateDest(SpellDestination& dest)
{
static Position const offset = { 0.0f, 0.0f, 200.0f, 0.0f };
dest.RelocateOffset(offset);
diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp
index 1bd95e858ae..d179e94d0b0 100644
--- a/src/server/scripts/Spells/spell_shaman.cpp
+++ b/src/server/scripts/Spells/spell_shaman.cpp
@@ -212,7 +212,7 @@ class spell_sha_ancestral_guidance_heal : public SpellScript
return ValidateSpellInfo({ SPELL_SHAMAN_ANCESTRAL_GUIDANCE });
}
- void ResizeTargets(std::list<WorldObject*>& targets)
+ static void ResizeTargets(std::list<WorldObject*>& targets)
{
Trinity::SelectRandomInjuredTargets(targets, 3, true);
}