Core: Fixed compile.

--HG--
branch : trunk
This commit is contained in:
_manuel_
2010-10-01 21:24:50 -03:00
parent dfa401faf6
commit 91858c4ff8

View File

@@ -14959,7 +14959,7 @@ bool Player::SatisfyQuestDay(Quest const* qInfo, bool msg)
if (!m_DFQuests.empty())
return false;
return true
return true;
}
bool have_slot = false;
@@ -17240,12 +17240,13 @@ void Player::_LoadDailyQuestStatus(PreparedQueryResult result)
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())
{
m_DFQuests.insert(qQuest->GetQuestId());
m_lastDailyQuestTime = (time_t)result->GetUInt64(1);
m_lastDailyQuestTime = (time_t)fields[1].GetUInt64();
continue;
}
}
@@ -17256,8 +17257,6 @@ void Player::_LoadDailyQuestStatus(PreparedQueryResult result)
break;
}
Field* fields = result->Fetch();
uint32 quest_id = fields[0].GetUInt32();
// save _any_ from daily quest times (it must be after last reset anyway)