Core/Arena: avoid arena match loss when leaving queue before actual invitation to match (by VladimirMangos)

--HG--
branch : trunk
This commit is contained in:
azazel
2010-12-15 14:25:10 +06:00
parent b39b8fdd0d
commit 23e3909221
@@ -474,7 +474,7 @@ void WorldSession::HandleBattleFieldPortOpcode(WorldPacket &recv_data)
break;
case 0: // leave queue
// if player leaves rated arena match before match start, it is counted as he played but he lost
if (ginfo.IsRated)
if (ginfo.IsRated && ginfo.IsInvitedToBGInstanceGUID)
{
ArenaTeam * at = sObjectMgr.GetArenaTeamById(ginfo.Team);
if (at)