[Server] Fix Cell::sendToLoaded() part 2, and fix Player::sendToLoaded()

This commit is contained in:
David Cernat 2017-04-06 08:39:11 +03:00
parent 8616323bae
commit c6c0e4acc9
2 changed files with 2 additions and 3 deletions

View file

@ -69,10 +69,9 @@ void Cell::sendToLoaded(mwmp::WorldPacket *worldPacket, mwmp::BaseEvent *baseEve
if (pl->guid == baseEvent->guid) continue;
worldPacket->setEvent(baseEvent);
worldPacket->setGUID(pl->guid);
// Send the packet to this eligible guid
worldPacket->Send(false);
worldPacket->Send(pl->guid);
}
}

View file

@ -159,7 +159,7 @@ void Player::sendToLoaded(mwmp::PlayerPacket *myPacket)
{
if (pl == this) continue;
myPacket->setPlayer(this);
myPacket->Send();
myPacket->Send(pl->guid);
}
}