diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-07-27 19:37:57 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-07-27 19:37:57 +0200 |
| commit | 46b67ec20555d86340407926ad69979475b8668e (patch) | |
| tree | d80682561fe694444de0f09c65e98e5b40527f30 /src/server/scripts | |
| parent | f94e341a0314bc956726e11dfb435e09b7ee696f (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.cpp | 2 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_shaman.cpp | 2 |
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); } |
