diff --git a/components/openmw-mp/Packets/Actor/ActorPacket.cpp b/components/openmw-mp/Packets/Actor/ActorPacket.cpp index 715168a26..744f7f6f4 100644 --- a/components/openmw-mp/Packets/Actor/ActorPacket.cpp +++ b/components/openmw-mp/Packets/Actor/ActorPacket.cpp @@ -62,9 +62,12 @@ bool ActorPacket::PacketHeader(RakNet::BitStream *bs, bool send) RW(actorList->count, send); if (actorList->count > maxActors) + { actorList->isValid = false; + return false; + } - return actorList->isValid; + return true; } diff --git a/components/openmw-mp/Packets/World/WorldPacket.cpp b/components/openmw-mp/Packets/World/WorldPacket.cpp index 6317b6847..b13a635e3 100644 --- a/components/openmw-mp/Packets/World/WorldPacket.cpp +++ b/components/openmw-mp/Packets/World/WorldPacket.cpp @@ -66,6 +66,7 @@ bool WorldPacket::PacketHeader(RakNet::BitStream *bs, bool send) RW(event->cell.mData, send, 1); RW(event->cell.mName, send, 1); } + return true; }