mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
[Client] Use the correct guid for a received WorldEvent or ActorList
This commit is contained in:
parent
14f0299322
commit
bbdc30628b
@ -15,6 +15,7 @@ bool ActorProcessor::Process(RakNet::Packet &packet, ActorList &actorList)
|
||||
{
|
||||
RakNet::BitStream bsIn(&packet.data[1], packet.length, false);
|
||||
bsIn.Read(guid);
|
||||
actorList.guid = guid;
|
||||
|
||||
ActorPacket *myPacket = Main::get().getNetworking()->getActorPacket(packet.data[0]);
|
||||
|
||||
@ -44,4 +45,4 @@ bool ActorProcessor::Process(RakNet::Packet &packet, ActorList &actorList)
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ bool WorldProcessor::Process(RakNet::Packet &packet, WorldEvent &event)
|
||||
{
|
||||
RakNet::BitStream bsIn(&packet.data[1], packet.length, false);
|
||||
bsIn.Read(guid);
|
||||
event.guid = guid;
|
||||
|
||||
WorldPacket *myPacket = Main::get().getNetworking()->getWorldPacket(packet.data[0]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user