fix(Player/Achievement): fix crash (#17357)

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/17330
This commit is contained in:
Kitzunu
2023-09-25 21:01:19 +02:00
committed by GitHub
parent b40640fc38
commit 2d3e9a8f23

View File

@@ -676,7 +676,8 @@ InstancePlayerBind* InstanceSaveMgr::PlayerBindToInstance(ObjectGuid guid, Insta
stmt->SetData(2, permanent);
CharacterDatabase.Execute(stmt);
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_RAID, 1);
if (player)
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_RAID, 1);
}
if (bind.save != save)