Various: Fix coverity reported issues.

This commit is contained in:
treeston authored and Aokromes committed 2016-10-05 07:59:14 +02:00
1 parent 0f5f87add0
commit 824db91cbe
5 files changed
+9 -53

No files matched your search

+3 -1
View File
@@ -4203,8 +4203,10 @@ class spell_gen_pony_mount_check : public SpellScriptLoader
void HandleEffectPeriodic(AuraEffect const* /*aurEff*/)
{
Unit* caster = GetCaster();
if (!caster)
return;
Player* owner = caster->GetOwner()->ToPlayer();
if (!caster || !owner || !owner->HasAchieved(ACHIEV_PONY_UP))
if (!owner || !owner->HasAchieved(ACHIEV_PONY_UP))
return;
if (owner->IsMounted())