From dadd81afe0ee2f53efc131bfa6a5479a3362dfd2 Mon Sep 17 00:00:00 2001 From: vincent-michael Date: Sun, 15 May 2016 18:07:36 +0200 Subject: [PATCH] Core/Quests: Fixed issue reported by static analysis Coverity defect ID: 1355241 --- src/server/scripts/Northrend/zone_grizzly_hills.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/scripts/Northrend/zone_grizzly_hills.cpp b/src/server/scripts/Northrend/zone_grizzly_hills.cpp index 4eafc1cd94e..adade245c2b 100644 --- a/src/server/scripts/Northrend/zone_grizzly_hills.cpp +++ b/src/server/scripts/Northrend/zone_grizzly_hills.cpp @@ -1044,6 +1044,12 @@ public: { PrepareAuraScript(spell_z_check_AuraScript); + public: + spell_z_check_AuraScript() + { + _posZ = 0.0f; + } + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { _posZ = GetTarget()->GetPositionZ();