fix(Core): Crashfix. (#11956)

This commit is contained in:
UltraNix
2022-06-08 04:38:33 +02:00
committed by GitHub
parent 70f3891352
commit f312600513

View File

@@ -127,8 +127,13 @@ public:
void JustDied(Unit* killer) override
{
if (Player* player = killer->GetCharmerOrOwnerPlayerOrPlayerItself())
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, 1, 0, me);
if (killer)
{
if (Player* player = killer->GetCharmerOrOwnerPlayerOrPlayerItself())
{
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, 1, 0, me);
}
}
}
};