fix(Player/Achievement): fix crash (#17357)
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/17330
This commit is contained in:
@@ -676,7 +676,8 @@ InstancePlayerBind* InstanceSaveMgr::PlayerBindToInstance(ObjectGuid guid, Insta
|
|||||||
stmt->SetData(2, permanent);
|
stmt->SetData(2, permanent);
|
||||||
CharacterDatabase.Execute(stmt);
|
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)
|
if (bind.save != save)
|
||||||
|
|||||||
Reference in New Issue
Block a user