mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-14 22:19:25 +01:00
Various: Fix coverity reported issues.
This commit is contained in:
@@ -4262,8 +4262,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