Various: Fix coverity reported issues.
This commit is contained in:
1 parent
0f5f87add0
commit
824db91cbe
5 files changed
+9
-53
No files matched your search
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user