make sure GetCaster() is not null

This commit is contained in:
Kitzunu
2021-01-20 23:22:28 +01:00
parent e2d9bb880a
commit 6fcf749e90

View File

@@ -1572,6 +1572,11 @@ public:
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (!GetCaster())
{
return;
}
Player* player = GetCaster()->ToPlayer();
if (Creature * creature = player->FindNearestCreature(CREATURE_INSTANT_STATUE_PEDESTAL, 0.0f, true))
{