From f7473e3379139186135849e2e36ce0bca692f6db Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 28 May 2017 17:00:52 +0800 Subject: [PATCH] [General] Fix copy-posty bug --- .../Packets/Actor/PacketActorCellChange.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp b/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp index 4af9a4d79..02d9bd234 100644 --- a/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp +++ b/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp @@ -20,11 +20,6 @@ void PacketActorCellChange::Packet(RakNet::BitStream *bs, bool send) RW(actorList->count, send); - RW(actorList->cell.mData.mFlags, send); - RW(actorList->cell.mData.mX, send); - RW(actorList->cell.mData.mY, send); - RW(actorList->cell.mName, send); - BaseActor actor; for (unsigned int i = 0; i < actorList->count; i++) @@ -37,8 +32,11 @@ void PacketActorCellChange::Packet(RakNet::BitStream *bs, bool send) RW(actor.refNumIndex, send); RW(actor.mpNum, send); - RW(actor.position, send); - RW(actor.direction, send); + RW(actor.cell.mData, send, 1); + RW(actor.cell.mName, send, 1); + + RW(actor.position, send, 1); + RW(actor.direction, send, 1); if (!send) {