Fix crash in Player::DuelComplete.

Fixes issue #1243.

--HG--
branch : trunk
This commit is contained in:
Trazom62
2010-03-27 16:23:43 +01:00
parent d9de0874ae
commit eba6ae5ffd
+3 -1
View File
@@ -6819,7 +6819,9 @@ void Player::DuelComplete(DuelCompleteType type)
WorldPacket data(SMSG_DUEL_COMPLETE, (1));
data << (uint8)((type != DUEL_INTERUPTED) ? 1 : 0);
GetSession()->SendPacket(&data);
duel->opponent->GetSession()->SendPacket(&data);
if (duel->opponent->GetSession())
duel->opponent->GetSession()->SendPacket(&data);
if (type != DUEL_INTERUPTED)
{