aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvincent-michael <vincent_michael@gmx.de>2016-05-15 18:07:36 +0200
committervincent-michael <vincent_michael@gmx.de>2016-05-15 18:08:59 +0200
commita01fd522675701f5dd2d30684b1689c9f8432d75 (patch)
tree794ca49a14ac514acf9f2fb824984e0d839ef638
parent868dcb001cd5116f2a30ecfef6a1ba888d449abe (diff)
Core/Quests: Fixed issue reported by static analysis
Coverity defect ID: 1355241
-rw-r--r--src/server/scripts/Northrend/zone_grizzly_hills.cpp6
1 files changed, 6 insertions, 0 deletions
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();