fix(Core/TempSummon): Fix crash concerning PlayerScript hook (#2650)
This commit is contained in:
@@ -149,6 +149,7 @@ void TempSummon::InitStats(uint32 duration)
|
|||||||
ASSERT(!IsPet());
|
ASSERT(!IsPet());
|
||||||
|
|
||||||
Unit* owner = GetSummoner();
|
Unit* owner = GetSummoner();
|
||||||
|
if (owner)
|
||||||
if (Player* player = owner->ToPlayer())
|
if (Player* player = owner->ToPlayer())
|
||||||
sScriptMgr->OnBeforeTempSummonInitStats(player, this, duration);
|
sScriptMgr->OnBeforeTempSummonInitStats(player, this, duration);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user