[General] Fix packet validation for ActorPackets sent by server scripts

This allows Lua scripts to send actor data again, which hadn't been possible anymore after 2ed1bfe
This commit is contained in:
David Cernat 2017-06-08 23:28:58 +03:00
parent abaa26e32a
commit a84cf7c191
2 changed files with 5 additions and 1 deletions

View file

@ -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;
}

View file

@ -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;
}