Core/Quests: Fixed issue reported by static analysis

Coverity defect ID: 1355241

(cherry picked from commit a01fd52267)
This commit is contained in:
vincent-michael
2016-05-15 18:07:36 +02:00
committed by joschiwald
parent 4c60bbea0e
commit a2ee7e16ec

View File

@@ -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();