feat(Core/Gameobject): add a range check for gameobjects (#7521)

This commit is contained in:
lineagedr 2021-08-31 11:34:43 +03:00 committed by GitHub
parent 1c43e6ac6e
commit ae8a78d90a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 256 additions and 48 deletions

View file

@ -432,7 +432,9 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint16 flags) const
// 0x200
if (flags & UPDATEFLAG_ROTATION)
*data << int64(ToGameObject()->GetPackedWorldRotation());
{
*data << int64(ToGameObject()->GetPackedLocalRotation());
}
}
void Object::BuildValuesUpdate(uint8 updateType, ByteBuffer* data, Player* target) const