From 46b67ec20555d86340407926ad69979475b8668e Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 27 Jul 2023 19:37:57 +0200 Subject: Core/Scripts: Fixed unsafe function pointer type casting in spell scripts --- src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp | 2 +- src/server/scripts/Spells/spell_shaman.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts') 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& targets) + static void ResizeTargets(std::list& targets) { Trinity::SelectRandomInjuredTargets(targets, 3, true); } -- cgit v1.2.3