Core/LFG: Fix warning with vs2014 ctp (no support)

This commit is contained in:
Vincent-Michael
2014-07-11 17:04:01 +02:00
parent 495ca8c2dc
commit 4f619eb937
2 changed files with 5 additions and 6 deletions

View File

@@ -1707,14 +1707,13 @@ void LFGMgr::RemoveGroupData(uint64 guid)
LfgState state = GetState(guid);
// If group is being formed after proposal success do nothing more
LfgGuidSet const& players = it->second.GetPlayers();
for (LfgGuidSet::const_iterator it = players.begin(); it != players.end(); ++it)
for (uint64 playerGUID : players)
{
uint64 guid = (*it);
SetGroup(*it, 0);
SetGroup(playerGUID, 0);
if (state != LFG_STATE_PROPOSAL)
{
SetState(*it, LFG_STATE_NONE);
SendLfgUpdateParty(guid, LfgUpdateData(LFG_UPDATETYPE_REMOVED_FROM_QUEUE));
SetState(playerGUID, LFG_STATE_NONE);
SendLfgUpdateParty(playerGUID, LfgUpdateData(LFG_UPDATETYPE_REMOVED_FROM_QUEUE));
}
}
GroupsStore.erase(it);

View File

@@ -95,7 +95,7 @@ public:
void JustDied(Unit* /*killer*/) override
{
Unit* Terestian = ObjectAccessor::GetUnit(*me, instance->GetData64(DATA_TERESTIAN));
Creature* Terestian = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_TERESTIAN));
if (Terestian && Terestian->IsAlive())
DoCast(Terestian, SPELL_BROKEN_PACT, true);
}