mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
@@ -17777,7 +17777,6 @@ void Player::_LoadQuestStatus(PreparedQueryResult result)
|
||||
|
||||
void Player::_LoadQuestStatusObjectives(PreparedQueryResult result)
|
||||
{
|
||||
uint16 slot = 0;
|
||||
|
||||
//// 0 1 2
|
||||
//QueryResult* result = CharacterDatabase.PQuery("SELECT quest, objective, data WHERE guid = '%u'", GetGUIDLow());
|
||||
@@ -17790,8 +17789,9 @@ void Player::_LoadQuestStatusObjectives(PreparedQueryResult result)
|
||||
|
||||
uint32 questID = fields[0].GetUInt32();
|
||||
|
||||
uint16 slot = FindQuestSlot(questID);
|
||||
auto itr = m_QuestStatus.find(questID);
|
||||
if (itr != m_QuestStatus.end())
|
||||
if (itr != m_QuestStatus.end() && slot < MAX_QUEST_LOG_SIZE)
|
||||
{
|
||||
QuestStatusData& questStatusData = itr->second;
|
||||
uint8 objectiveIndex = fields[1].GetUInt8();
|
||||
|
||||
Reference in New Issue
Block a user