From 5ab71174bf64825aa87186b029ef9bcf85dd3e26 Mon Sep 17 00:00:00 2001 From: Niam5 Date: Sat, 31 Aug 2024 00:11:03 -0700 Subject: [PATCH] Fix Playerbots after weak_ptr addition --- src/game/Entities/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Entities/Player.cpp b/src/game/Entities/Player.cpp index c3ee2860c5..ef581172b0 100644 --- a/src/game/Entities/Player.cpp +++ b/src/game/Entities/Player.cpp @@ -21350,7 +21350,7 @@ void Player::learnClassLevelSpells(bool includeHighLevelQuestRewards) ObjectMgr::QuestMap const& qTemplates = sObjectMgr.GetQuestTemplates(); for (const auto& qTemplate : qTemplates) { - Quest const* quest = qTemplate.second; + Quest const* quest = qTemplate.second.get(); if (!quest) continue;