From a01fd522675701f5dd2d30684b1689c9f8432d75 Mon Sep 17 00:00:00 2001 From: vincent-michael Date: Sun, 15 May 2016 18:07:36 +0200 Subject: 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(+) (limited to 'src') 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(); -- cgit v1.2.3