Core: Fixed compile.
--HG-- branch : trunk
This commit is contained in:
@@ -14959,7 +14959,7 @@ bool Player::SatisfyQuestDay(Quest const* qInfo, bool msg)
|
|||||||
if (!m_DFQuests.empty())
|
if (!m_DFQuests.empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool have_slot = false;
|
bool have_slot = false;
|
||||||
@@ -17240,12 +17240,13 @@ void Player::_LoadDailyQuestStatus(PreparedQueryResult result)
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (Quest const* qQuest = sObjectMgr.GetQuestTemplate(result->GetUInt32(0)))
|
Field* fields = result->Fetch();
|
||||||
|
if (Quest const* qQuest = sObjectMgr.GetQuestTemplate(fields[0].GetUInt32()))
|
||||||
{
|
{
|
||||||
if (qQuest->IsDFQuest())
|
if (qQuest->IsDFQuest())
|
||||||
{
|
{
|
||||||
m_DFQuests.insert(qQuest->GetQuestId());
|
m_DFQuests.insert(qQuest->GetQuestId());
|
||||||
m_lastDailyQuestTime = (time_t)result->GetUInt64(1);
|
m_lastDailyQuestTime = (time_t)fields[1].GetUInt64();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -17256,8 +17257,6 @@ void Player::_LoadDailyQuestStatus(PreparedQueryResult result)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Field* fields = result->Fetch();
|
|
||||||
|
|
||||||
uint32 quest_id = fields[0].GetUInt32();
|
uint32 quest_id = fields[0].GetUInt32();
|
||||||
|
|
||||||
// save _any_ from daily quest times (it must be after last reset anyway)
|
// save _any_ from daily quest times (it must be after last reset anyway)
|
||||||
|
|||||||
Reference in New Issue
Block a user