Core/Quests: Fixed issue reported by static analysis

Coverity defect ID: 1355241
This commit is contained in:
vincent-michael authored and Aokromes committed 2016-07-20 11:01:10 +02:00
1 parent 13c5e4be65
commit dadd81afe0
1 file changed
+6
@@ -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();