facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.3k stars 1.02k forks source link

Add missing read alignment in ReplicaManager3::OnConstruction #63

Open tullrich opened 9 years ago

tullrich commented 9 years ago

When writing the Construction/Destruction packet an alignment is added regardless of if PostSerializeConstruction data is written. This can be found at ReplicaManager3.cpp:2288.

The alignment is missing in the corresponding read logic, and causes missing Replica destructions on clients when a packet includes both creations and deletions.

Luke1410 commented 7 years ago

Pull request integrated in https://github.com/SLikeSoft/SLikeNet (incorporated in SLikeNet 0.1.0).