Core: Corrected conflicting variable names
This commit is contained in:
@@ -469,9 +469,9 @@ bool CalendarMgr::RemoveEvent(uint64 eventId)
|
||||
bool val = true;
|
||||
|
||||
CalendarInviteIdList const& invites = itr->second.GetInviteIdList();
|
||||
for (CalendarInviteIdList::const_iterator itr = invites.begin(); itr != invites.end(); ++itr)
|
||||
for (CalendarInviteIdList::const_iterator itrInvites = invites.begin(); itrInvites != invites.end(); ++itrInvites)
|
||||
{
|
||||
CalendarInvite* invite = GetInvite(*itr);
|
||||
CalendarInvite* invite = GetInvite(*itrInvites);
|
||||
if (!invite || !RemovePlayerEvent(invite->GetInvitee(), eventId))
|
||||
val = false;
|
||||
}
|
||||
|
||||
@@ -4079,11 +4079,11 @@ void Player::removeSpell(uint32 spell_id, bool disabled, bool learn_low_rank)
|
||||
// most likely will never be used, haven't heard of cases where players unlearn a mount
|
||||
if (Has310Flyer(false) && _spell_idx->second->skillId == SKILL_MOUNTS)
|
||||
{
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spell_id);
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
if (spellInfo->Effects[i].ApplyAuraName == SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED &&
|
||||
spellInfo->Effects[i].CalcValue() == 310)
|
||||
Has310Flyer(true, spell_id); // with true as first argument its also used to set/remove the flag
|
||||
if (spellInfo)
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
if (spellInfo->Effects[i].ApplyAuraName == SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED &&
|
||||
spellInfo->Effects[i].CalcValue() == 310)
|
||||
Has310Flyer(true, spell_id); // with true as first argument its also used to set/remove the flag
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -590,11 +590,10 @@ void WorldSession::HandleCalendarGetNumPending(WorldPacket& /*recvData*/)
|
||||
|
||||
void WorldSession::SendCalendarEvent(CalendarEvent const& calendarEvent, CalendarSendEventType sendEventType)
|
||||
{
|
||||
uint64 guid = _player->GetGUID();
|
||||
uint64 eventId = calendarEvent.GetEventId();
|
||||
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "SMSG_CALENDAR_SEND_EVENT [" UI64FMTD "] EventId ["
|
||||
UI64FMTD "] SendType %u", guid, eventId, sendEventType);
|
||||
UI64FMTD "] SendType %u", _player->GetGUID(), eventId, sendEventType);
|
||||
|
||||
WorldPacket data(SMSG_CALENDAR_SEND_EVENT);
|
||||
data << uint8(sendEventType);
|
||||
@@ -632,7 +631,7 @@ void WorldSession::SendCalendarEvent(CalendarEvent const& calendarEvent, Calenda
|
||||
}
|
||||
else
|
||||
{
|
||||
data.appendPackGUID(guid);
|
||||
data.appendPackGUID(_player->GetGUID());
|
||||
data << uint8(0) << uint8(0) << uint8(0) << uint8(0)
|
||||
<< uint64(0) << uint32(0) << uint8(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user