Core: Corrected conflicting variable names

This commit is contained in:
Shauren
2012-03-14 00:21:46 +01:00
parent ae27a2cf51
commit 1dde22394c
3 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -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;
}
+1 -1
View File
@@ -4079,7 +4079,7 @@ 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);
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)
+2 -3
View File
@@ -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);